Skip to content

Keyboard Shortcuts - OSX ​

Editing ​

KeypressCommand
⌘ XCut line
⌘ ⏎Insert line after
⇧ ⌘ ⏎Insert line before
Ctrl ⌘ ↑Swap line up
Ctrl ⌘ ↓Swap line down
⌘ LSelect line - Repeat to select next lines
⌘ DSelect word - Repeat to select next occurrence
Ctrl ⌘ GSelect all occurrences of current selection
Ctrl ⇧ ↑Extra cursor on the line above
Ctrl ⇧ ↓Extra cursor on the line below
Ctrl AMove to beginning of line
⌘ ←Move to beginning of text on line
Ctrl E, ⌘ →Move to end of line
⌘ K, ⌘ KDelete from cursor to end of line
⌘ K, ⌘ ⌫Delete from cursor to start of line
Ctrl MJump to closing parentheses Repeat to jump to opening parentheses
Ctrl ⇧ MSelect all contents of the current parentheses
Ctrl ⇧ WInsert XML long tag
⌘ ]Indent current line(s)
⌘ [Un-indent current line(s)
⇧ ⌘ DDuplicate line(s)
⌘ JJoin line below to the end of the current line
⌘ /Comment/un-comment current line
⌥ ⌘ /Block comment current selection
⌘ YRedo, or repeat last keyboard shortcut command
⇧ ⌘ VPaste and indent correctly
Ctrl ␣Select next auto-complete suggestion
⌘ USoft undo; jumps to your last change before undoing change when repeated
Ctrl Alt ↑Scroll lines up
Ctrl Alt ↓Scroll lines down
KeypressCommand
⌘ PQuick-open files by name
⌘ RGoto symbol
⇧ ⌘ RGoto symbol in project
F12Goto definition
⌘ F12Goto definition in split
⇧ F12Goto reference
⇧ ⌘ F12Goto reference in split
Ctrl GGoto line in current file

Build ​

KeypressCommand
F7Build
⌘ BBuild
⇧ ⌘ BBuild selected
Ctrl CCancel build

General ​

KeypressCommand
⇧ ⌘ PCommand Palette
Ctrl BackquotePython Console
Ctrl ⌘ FToggle fullscreen mode
Ctrl ⇧ ⌘ FToggle distraction-free mode
⌘ K, ⌘ BToggle side bar
Ctrl ⇧ PShow scope in status bar

Find/Replace ​

KeypressCommand
⌘ FFind
⌥ ⌘ FReplace
⇧ ⌘ FFind in files
⌘ IIncremental Find

Scrolling ​

KeypressCommand
Ctrl VScroll down one page
Ctrl LCenter current line vertically in page
⌘ ↓Scroll to end of file
⌘ ↑Scroll to start of file

Tabs ​

KeypressCommand
⇧ ⌘ TOpen last closed tab
⌘ [1-8]Jump to tab in current group
⌘ 9Jump to last tab in current group
⇧ ⌘ [Cycle left through tabs
⇧ ⌘ ]Cycle right through tabs
Ctrl ⭾Cycle up through recent tabs
Ctrl ⇧ ⭾Cycle down through recent tabs

Split window ​

KeypressCommand
⌥ ⌘ 1Revert view to single column
⌥ ⌘ 2Split view into two columns
⌥ ⌘ 3Split view into three columns
⌥ ⌘ 4Split view into four columns
⌥ ⌘ 5Set view to grid (4 groups)
Ctrl [1-4]Jump to group
Ctrl ⇧ [1-4]Move file to specified group

Folding ​

KeypressCommand
⌥ ⌘ [Fold
⌥ ⌘ ]Unfold
⌘ K, ⌘ 1 to ⌘ K, ⌘ 9Fold by level 1 to 9
⌘ K, ⌘ TFold tag attributes

Bookmarks ​

KeypressCommand
⌘ F2Toggle bookmark
F2Next bookmark
⇧ F2Previous bookmark
⇧ ⌘ F2Clear bookmarks

Text manipulation ​

KeypressCommand
⌘ K, ⌘ UTransform to Uppercase
⌘ K, ⌘ LTransform to Lowercase