Web & Dev

Programming Keyboard Shortcuts

Common editor and IDE shortcuts — VS Code, Vim, IntelliJ, and terminal.

VS Code (macOS uses ⌘, others Ctrl)

ActionShortcut
Command paletteCtrl + Shift + P
Go to fileCtrl + P
Go to symbolCtrl + Shift + O
Go to lineCtrl + G
Quick fixCtrl + .
Rename symbolF2
Find in filesCtrl + Shift + F
Toggle terminalCtrl + `
Multi-cursorAlt + Click / Ctrl + Alt + ↑↓
Select all matchesCtrl + Shift + L
Move lineAlt + ↑↓
Duplicate lineShift + Alt + ↑↓
Comment lineCtrl + /

Vim (normal mode)

ActionKeys
Save:w
Quit:q
Save and quit:wq
Force quit:q!
Undo / redou / Ctrl + r
Enter inserti / a / o
Word forwardw
Word backb
Find charf / t
Replace linecc
Delete linedd
Yank lineyy
Visual modev / V / Ctrl + v (block)
Search/pattern
Next matchn / N
Substitute:%s/old/new/g

IntelliJ / JetBrains

ActionShortcut
Search everywhereShift Shift
Find actionCtrl + Shift + A
Go to classCtrl + N
Go to fileCtrl + Shift + N
Go to symbolCtrl + Alt + Shift + N
Refactor renameShift + F6
GenerateAlt + Insert
ReformatCtrl + Alt + L
Run / DebugShift + F10 / Shift + F9

Terminal (bash/zsh)

ActionKeys
Reverse searchCtrl + R
Beginning of lineCtrl + A
End of lineCtrl + E
Clear lineCtrl + U
Delete to endCtrl + K
Word left / rightAlt + B / Alt + F
Clear screenCtrl + L
InterruptCtrl + C
EOF / logoutCtrl + D
SuspendCtrl + Z
Was this article helpful?