Programming Keyboard Shortcuts

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

Reference Reference Updated Apr 19, 2026
Reference

VS Code (macOS uses ⌘, others Ctrl)

Action Shortcut
Command palette Ctrl + Shift + P
Go to file Ctrl + P
Go to symbol Ctrl + Shift + O
Go to line Ctrl + G
Quick fix Ctrl + .
Rename symbol F2
Find in files Ctrl + Shift + F
Toggle terminal Ctrl + `
Multi-cursor Alt + Click / Ctrl + Alt + ↑↓
Select all matches Ctrl + Shift + L
Move line Alt + ↑↓
Duplicate line Shift + Alt + ↑↓
Comment line Ctrl + /

Vim (normal mode)

Action Keys
Save :w
Quit :q
Save and quit :wq
Force quit :q!
Undo / redo u / Ctrl + r
Enter insert i / a / o
Word forward w
Word back b
Find char f / t
Replace line cc
Delete line dd
Yank line yy
Visual mode v / V / Ctrl + v (block)
Search /pattern
Next match n / N
Substitute :%s/old/new/g

IntelliJ / JetBrains

Action Shortcut
Search everywhere Shift Shift
Find action Ctrl + Shift + A
Go to class Ctrl + N
Go to file Ctrl + Shift + N
Go to symbol Ctrl + Alt + Shift + N
Refactor rename Shift + F6
Generate Alt + Insert
Reformat Ctrl + Alt + L
Run / Debug Shift + F10 / Shift + F9

Terminal (bash/zsh)

Action Keys
Reverse search Ctrl + R
Beginning of line Ctrl + A
End of line Ctrl + E
Clear line Ctrl + U
Delete to end Ctrl + K
Word left / right Alt + B / Alt + F
Clear screen Ctrl + L
Interrupt Ctrl + C
EOF / logout Ctrl + D
Suspend Ctrl + Z

Last updated: