Skip to content

Latest commit

 

History

History
121 lines (105 loc) · 3.99 KB

KEYBOARD-SHORTCUTS.md

File metadata and controls

121 lines (105 loc) · 3.99 KB

Keyboard shortcuts

PhpStorm / Visual Code Studio

Navigation and tools

Keyboard shortcut Action
ESC Focus on editor
CMD + F Find in file
CMD + R Replace in file
CMD + SHIFT + F Find in path
CMD + SHIFT + R Replace in path
CMD + P Find file
CMD + O Find class
CMD + SHIFT + P Find action
CMD + SHIFT + O Find symbol (function in a class)
SHIFT + SHIFT Find anything (classes, files, symbols, actions)
CMD + E Recent files popup
CMD + CTRL + P Recent projects popup
CMD + UP Floating file system (PhpStorm only)
CMD + N New file
CMD + ALT + N New file dialog (VSCode only)
CMD + CTRL + R Rename...
CMD + SHIFT + I File structure popup
CMD + ALT + R Debug list
CTRL + CTRL Run anything
CTRL + ALT + R Run task list
CTRL + ALT + SHIFT + UP Previous change
CTRL + ALT + SHIFT + DOWN Next change

PhpStorm only

Keyboard shortcut Action
CMD + 1 Open project files / file explorer panel
CMD + 2 Open favorites panel
CMD + 3 Open file structure / file outline panel
CMD + SHOFT + I Open file structure / file outline panel popup
CMD + 4 Open NPM panel
CMD + 5 Open Git panel
CMD + 6 Open terminal panel
CMD + 7 Open debug panel
CMD + 8 Open run panel
CMD + 9 Open event log panel
CMD + 0 Open database panel

VS code only

Keyboard shortcut Action
CMD + 1 Explorer panel
CMD + 2 Open Version Control panel
CMD + 3 Open debug panel
CMD + 4 Focus on Outline view
CMD + 5 Focus on NPM Scripts view
CMD + 6 Focus on Gitlens Commits view
CMD + B Toggle sidebar

Version Control

Keyboard shortcut Action
CMD + K Commit dialog (PhpStorm only)
CMD + SHIFT + K Push dialog (Pushes current branch in VS code)
CMD + Enter Confirm commit / push dialog
CTRL + B Branch list dialog
CTRL + F Fetch
CTRL + P Pull dialog
CTRL + S Stash changes dialog
CTRL + A Unstash changes dialog

Editor

Keyboard shortcut Action
CMD + C Copy
CMD + V Past
CMD + X Cut
CMD + A Select all
CMD + Z Undo
CMD + SHIFT + Z Redo
CMD + D Duplicate line
CMD + BACKSPACE Delete line
ALT + UP Extend selection
ALT + DOWN Shrink selection
SHIFT + ALT + UP Move line up
SHIFT + ALT + DOWN Move line down
CMD + SHIFT +UP Select all lines till top of the file
CMD + SHIFT + DOWN Select all lines till bottom of the file
CMD + ALT + L Format code
CMD + SHIFT + [ Select previous tab
CMD + SHIFT + ] Select next tab
CMD + W Close tab
CMD + ALT + T Surround with (quickly wrap a code block in useful constructs)

Google Chrome

Keyboard shortcut Action
ALT + SHIFT + 1 Display OneTab

ZSH Terminal

Keyboard shortcut Action
CTRL + A Go to the beginning of the line
CTRL + E Go to the end of the line
CTRL + W Cut one word before the cursor
CTRL + K Cut everything from the cursor to the end of the line
CTRL + U Cut everything from the cursor to the beginning of the line
CTRL + Y Paste the last thing you cut