Basic Editing
command + x | Cut line (empty selection) |
command + c | Copy line (empty selection) |
shift + command + k | Delete Line |
command + enter | Insert Line Below |
shift + command + enter | Insert Line Above |
option + down | Move Line Down |
option + up | Move Line Up |
shift + option + down | Copy Line Down |
shift + option + up | Copy Line Up |
command + d | Add Selection To Next Find Match |
command + d | Move Last Selection To Next Find Match |
command + u | Undo last cursor operation |
shift + option + i | Insert cursor at end of each line selected |
shift + command + l | Select all occurrences of current selection |
command + f2 | Select all occurrences of current word |
command + l | Select current line |
option + command + down | Insert Cursor Below |
option + command + up | Insert Cursor Above |
shift + command + \ | Jump to matching bracket |
command + ] | Indent Line |
command + [ | Outdent Line |
home | Go to Beginning of Line |
end | Go to End of Line |
command + down | Go to End of File |
command + up | Go to Beginning of File |
control + page down | Scroll Line Down |
control + page up | Scroll Line Up |
command + page down | Scroll Page Down |
command + page up | Scroll Page Up |
option + command + [ | Fold (collapse) region |
option + command + ] | Unfold (uncollapse) region |
command + [ | Fold (collapse) all subregions |
command + ] | Unfold (uncollapse) all subregions |
command + 0 | Fold (collapse) all regions |
command + j | Unfold (uncollapse) all regions |
command + c | Add Line Comment |
command + u | Remove Line Comment |
command + / | Toggle Line Comment |
shift + option + a | Toggle Block Comment |
command + f | Find |
option + command + f | Replace |
command + g | Find Next |
shift + command + g | Find Previous |
option + enter | Select All Occurrences of Find Match |
option + command + c | Toggle Find Case Sensitive |
option + command + r | Toggle Find Regex |
option + command + w | Toggle Find Whole Word |
control + shift + m | Toggle Use of Tab Key for Setting Focus |
option + z | Toggle Word Wrap |
Rich Languages Editing
control + space | Trigger Suggest |
shift + command + space | Trigger Parameter Hints |
shift + option + f | Format Document |
command + f | Format Selection |
f12 | Go to Definition |
command + i | Show Hover |
option + f12 | Peek Definition |
command + k then f12 | Open Definition to the Side |
command + . | Quick Fix |
shift + f12 | Peek References |
f2 | Rename Symbol |
shift + command + . | Replace with Next Value |
shift + command + , | Replace with Previous Value |
control + shift + command + right | Expand AST Selection |
control + shift + command + left | Shrink AST Selection |
command + x | Trim Trailing Whitespace |
command + k then m | Change Language Mode |
Navigation
command + t | Show All Symbols |
control + g | Go to Line... |
command + p | Go to File..., Quick Open |
shift + command + o | Go to Symbol... |
shift + command + m | Show Problems |
f8 | Go to Next Error or Warning |
shift + f8 | Go to Previous Error or Warning |
shift + command + p or f1 | Show All Commands |
control + shift + tab | Navigate Editor Group History |
control + - | Go Back |
control + - | Go back in Quick Input |
control + shift + - | Go Forward |
Editor/Window Management
shift + command + n | New Window |
shift + command + w | Close Window |
command + w | Close Editor |
command + k then f | Close Folder |
command + \ | Split Editor |
command + 1 | Focus into First Editor Group |
command + 2 | Focus into Second Editor Group |
command + 3 | Focus into Third Editor Group |
command + left | Move Editor Left |
command + right | Move Editor Right |
command + k then left | Move Active Editor Group Left |
command + k then right | Move Active Editor Group Right |
control + command + right | Move Editor into Next Group |
control + command + left | Move Editor into Previous Group |
File Management
command + n | New File |
command + s | Save |
option + command + s | Save All |
shift + command + s | Save As... |
command + w | Close |
option + command + t | Close Others |
command + k then w | Close Group |
command + k then command + w | Close All |
shift + command + t | Reopen Closed Editor |
command + k then enter | Keep Open |
control + tab | Open Next |
control + shift + tab | Open Previous |
command + k then p | Copy Path of Active File |
command + k then r | Reveal Active File in Windows |
command + k then o | Show Opened File in New Window |
Display
control + command + f | Toggle Full Screen |
command + k then z | Toggle Zen Mode |
escape then escape | Leave Zen Mode |
command + = | Zoom in |
command + - | Zoom out |
command + 0 | Reset Zoom |
command + b | Toggle Sidebar Visibility |
shift + command + e | Show Explorer / Toggle Focus |
shift + command + f | Show Search |
control + shift + g | Show Source Control |
shift + command + d | Show Debug |
shift + command + x | Show Extensions |
shift + command + u | Show Output |
control + q | Quick Open View |
shift + command + c | Open New Command Prompt |
shift + command + v | Toggle Markdown Preview |
command + k then v | Open Preview to the Side |
control + ` | Toggle Integrated Terminal |
Search
shift + command + f | Show Search |
shift + command + h | Replace in Files |
option + command + c | Toggle Match Case |
option + command + w | Toggle Match Whole Word |
option + command + r | Toggle Use Regular Expression |
shift + command + j | Toggle Search Details |
f4 | Focus Next Search Result |
shift + f4 | Focus Previous Search Result |
down | Show Next Search Term |
up | Show Previous Search Term |
Preferences
command + , | Open Settings |
command + k then command + s | Open Keyboard Shortcuts |
command + k then command + t | Select Color Theme |
Debug
f9 | Toggle Breakpoint |
f5 | Start |
f5 | Continue |
control + f5 | Start (without debugging) |
f6 | Pause |
f11 | Step Into |
shift + f11 | Step Out |
f10 | Step Over |
shift + f5 | Stop |
command + i | Show Hover |
Tasks
shift + command + b | Run Build Task |