- Quick docs:
F1
- External docs:
shift + F1
- Method parameter information:
cmd + p
- Search in Dash:
cmd + shift + d
(requires Dash plugin)
- Paste from history:
shift + cmd + v
- Expand selection:
alt + up
- Multiple cursors:
alt + click
(add and also remove) - Select next of kind:
ctrl + g
- Select all of kind:
ctrl + cmd + g
- Move selection:
alt + shift + up
/alt + shift + down
- Remove line:
cmd + backspace
- Search everywhere:
shift + shift
- Search for action:
cmd + shift + a
- Refactor:
ctrl + t
- (Re-)Format code:
alt + cmd + l
- Duplicate line:
cmd + d
- Create new file:
cmd + n
(within project sidebar) - Create temporary scratch file:
cmd + shift + n
- Scaffold code:
cmd + n
(within object) - Initialize fields:
alt + return
- Quickfix:
ctrl + return
- Import class namespace:
alt + return
- Show structure of current file:
cmd + F12
- Select recent files:
cmd + e
- Jump to declaration:
cmd + b
- Jump to previous caret (text cursor) position:
alt + cmd + left
- Jump to next caret (text cursor) position:
alt + cmd + right
- Navigate backwards with caret:
cmd + [
- Navigate forward with caret:
cmd + ]
- Jump to current file (Scroll from Source):
alt + F1 > 1
oralt + F1 > enter
- Open file:
cmd + shift + o
- Jump to the navigation bar:
cmd + ↑
- Setup Xdebug: https://gist.github.com/hofmannsven/9976152
- Debug:
ctrl + d
- Step into:
F7
- Step over:
F8
- Finish execution:
alt + cmd + r
- Stop debug:
cmd + F2
Add the global path as external library or require it via composer.
- External library:
/Applications/MAMP/Library/bin
- Composer dependency:
"phpunit/phpunit": "5.6.*"
composer global require squizlabs/php_codesniffer
- Alias:
alias phpcs="/Users/username/.composer/vendor/bin/phpcs"
- PhpStorm: Settings » Editor » Inspections » PHP » PHP Code Sniffer validation (PSR2)
- PhpStorm: Languages » PHP » Code Sniffer