Complete Code Editor Shortcuts Cheatsheet

Boost your coding productivity with these essential keyboard shortcuts

Quick Reference

These shortcuts work in VS Code, Sublime Text, Atom, and IntelliJ with platform variations.

Editor Compatibility
VS Code Sublime Atom IntelliJ

Windows/Linux: Ctrl | macOS: ⌘

Ctrl + P
Quick open file by name
Ctrl + G
Go to line number
Ctrl + Shift + O
Go to symbol in file
Ctrl + T
Go to class (IntelliJ)
Alt + /
Navigate back/forward in history
F12
Go to definition
Ctrl + ]/[
Move to matching bracket
Ctrl + Shift + \
Jump to matching bracket
Ctrl + Tab
Switch between open files
Ctrl + K Ctrl + S
Show all keyboard shortcuts (VS Code)

2 Editing Shortcuts

Ctrl + X
Cut line (empty selection)
Ctrl + C
Copy line (empty selection)
Ctrl + V
Paste line below (VS Code) / at cursor (others)
Ctrl + Shift + K
Delete line
Ctrl + Enter
Insert line below
Ctrl + Shift + Enter
Insert line above
Ctrl + Shift + \
Jump to matching bracket
Ctrl + ]/[
Indent/outdent line
Ctrl + /
Toggle line comment
Ctrl + Shift + /
Toggle block comment
Alt + /
Move line up/down
Ctrl + D
Duplicate line (VS Code/Sublime/Atom)

3 Selection Shortcuts

Ctrl + L
Select current line
Ctrl + Shift + L
Select all occurrences of current selection
Ctrl + D
Add next occurrence to selection (VS Code/Sublime)
Alt + Shift + /
Expand/shrink selection
Ctrl + Shift + Space
Select scope
Ctrl + U
Undo last selection (IntelliJ)
Ctrl + Shift + A
Select all occurrences (IntelliJ)
Alt + F3
Select all occurrences (Sublime)
Ctrl + F
Find
F3/Shift + F3
Find next/previous
Ctrl + H
Replace
Ctrl + Shift + F
Find in files
Ctrl + Shift + H
Replace in files
Ctrl + Alt + F
Find in files (Sublime)

5 Multi-Cursor Editing

Alt + Click
Add cursor
Ctrl + Alt + /
Add cursor above/below
Ctrl + Shift + L
Add cursors to all selections
Ctrl + D
Add next occurrence to selection
Ctrl + U
Undo last cursor operation (Sublime)

6 Debugging Shortcuts

F9
Toggle breakpoint
F5
Start/continue debugging
F10
Step over
F11
Step into
Shift + F11
Step out

7 Refactoring Shortcuts

F2
Rename symbol
Ctrl + .
Quick fix (VS Code)
Ctrl + Alt + Shift + T
Refactor this (IntelliJ)
Ctrl + Alt + M
Extract method (IntelliJ)
Ctrl + Alt + V
Extract variable (IntelliJ)