Phpstorm Cheatsheet Mac

  

Join GitHub today. PhpStorm For Mac Default Keymap Reference. Use Git or checkout with SVN using the web URL. Launching GitHub Desktop. If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop. If nothing happens, download GitHub Desktop and try again. Launching Xcode. If nothing happens, download Xcode and try again. WebStorm / PhpStorm Cheat Sheet. Move the selected class, method, package or static member to another package or class and correct all references. If you want to take your skills on the Mac to the next level as well, a tiny utility will now help you find you all the shortcuts you need to be a pro. Readers, meet CheatSheet. The Challenge We Are Facing. The most difficult challenge – next to memorizing shortcuts – is finding them in the first place.

ShortcutDescription
Ctrl + Nlookup a class
Ctrl + Shift + Nlookup a file
Ctrl + Shift + Alt + Nlookup a symbol
Ctrl + Bgoto declaration/definition
Shift + F2goto declaration/definition
Ctrl + F12list all members of a class
Alt + Shift + F7find all usages
Alt + Entershow suggestions
Alt + F1context menu
Shift + F6rename refactor
F6move class to new file refactor
Ctrl + Shift + Alt + T'refactor this' tool
Ctrl + Shift + Fglobal find
Ctrl + Qshow quick documentation
Ctrl + Shift + Tcreate or find unit test
Ctrl + Shift + F10dynamic run configuration
Ctrl + Wselect whole word
Ctrl + Shift + Aget list of actions
Shift + F2goto function definition
Ctrl + Tab (Ctrl + [0-9A-Z])show available tools to jump to (then pick one)
Ctrl + F5run normal
Alt + F5run debug
Alt + Insertin file window: insert file OR in editor window: insert predefined items (i.e. docs, test method, getters and setters)
Ctrl + Alt + Vset expression to interim variable, and then use interim variable the next line (really hard to explain, but it's really useful)
Alt + Jspawn new cursor at next instance of word under cursor, really useful for refactoring non-variable strings (i.e. array keys)
F10step over line (debug tool)
F11step into function (debug tool)
Mac

There is also an action to 'clear all tabs' and to 'clear all unedited tabs' that I use a lot, but it's not defined by default. I find assigning them to a hotkey definitely saves time in clearing your workspace (I used Ctrl + Shift + Backspace and Ctrl + Alt + Backspace, respectively).

You’ve made the switch to Mac OS X Lion from some version of Windows. Mac OS X is easy to learn, but Windows users may find a few of its keys and navigation elements a little mystifying at first. Use this Cheat Sheet to figure out Mac OS X keyboard symbols and shortcuts and to master Multi-Touch gestures to control your new Mac from its trackpad.

Deciphering Special Key Symbols in Mac OS X

Using keyboard shortcuts in Mac OSX means recognizing some important keys, such as Control, Shift, Escape, and more. The symbols for these Mac keys don’t look the same as they do on a Windows keyboard. Mac menus show keyboard shortcuts, when they’re available, using the following standard symbols for special keys:

Phpstorm Cheatsheet Mac

Commanding Keyboard Shortcuts on a Mac

Most Windows keyboard shortcuts, which require you to press Ctrl and a letter, work on a Mac if you press the Command key (the one with the four-leaf clover symbol) on the Mac instead of Ctrl. Thus, Command+C is copy, Command+X is cut, Command+V is paste, Command+Z is undo, and so on. Some shortcuts that are unique to the Mac include the following:

How to Give Commands with Mac Function Keys

A Mac keyboard has function keys, just like a Windows keyboard, but the keys likely issue different commands in Mac OS X than in Windows. On a Mac, the commands assigned to function keys vary by the keyboard’s size and manufacturer. Check Keyboard and Mission Control in System Preferences for your settings. The table shows typical default commands for function keys in Mac OS X Lion.

(Note: These commands work only on Apple-labeled keyboards, except for the Turn on VoiceOver command, which works on any keyboard.)

Navigating Mac OS X with Multi-Touch Gestures

Multi-Touch gestures are moves that you make on a Mac’s trackpad to send Mac OS X commands, mostly for navigating the Mac OS X interface. When you switch to a Mac from Windows, adjusting to Multi-Touch takes a little practice, so this table is here to help you:

GestureCommand It Performs
Two-finger swipeScroll (up, down, left, or right)
Two fingers on keypad+clickRight click (same as Control+click)
Three-finger swipeSwitch spaces or open applications
Three-finger double tapLook up a word in the dictionary or on Wikipedia
Four-finger swipe upShow Mission Control
Four-finger swipe downShow all windows for the current application
Four-finger pinchShow Launchpad
Four-finger spreadShow Desktop

Top Mac OS X Hints for Windows Users

Windows users who have made the switch to Mac OS X have some new mouse clicks, keyboard techniques, and touchpad (trackpad) gestures to learn. Have a look at some top tips for working on a Mac:

  • To right-click when using a single-button mouse, hold down Control and then click.

  • To right-click on a laptop or track pad, click with two fingers resting on the trackpad. Control-click also works.

  • The top row on Mac keyboards is used for special controls, such as audio volume and brightness. To use them as function keys, hold down the Fn key. You can reverse this behavior by choosing System Preferences@@→Keyboard. The Keyboard preferences pane also has a complete list of keyboard shortcuts.

  • Closing an application’s last window usually doesn’t close the application itself.

  • Apple applications and many third-party Mac applications save your edits automatically while you work and keep track of different versions.

  • To rename a file in a Finder window, click the filename once and then press Return. The filename becomes editable.

Starting Your Mac with Boot Option Keys

When your Mac powers up, it normally uses the system on its internal hard drive unless you change this behavior by choosing System Preferences@@→Startup Disk. You can also change what your Mac does by holding down the following keys or key combinations during startup.

Phpstorm Cheatsheet Mac 10

Print these boot option keys, because they’re particularly helpful to have when your Mac is having trouble.