Skip to content

Keyboard Shortcuts - Windows/Linux ​

Windows and Linux share most bindings.

The platform-specific sections below highlight the differences.

Editing ​

KeypressCommand
Ctrl XCut line
Ctrl ⏎Insert line after
Ctrl ⇧ ⏎Insert line before
Ctrl ⇧ ↑Swap line up
Ctrl ⇧ ↓Swap line down
Ctrl LSelect line - Repeat to select next lines
Ctrl DSelect word - Repeat select others occurrences
Ctrl MJump to closing parentheses Repeat to jump to opening parentheses
Ctrl ⇧ MSelect all contents of the current parentheses
Ctrl ⇧ KDelete Line
Ctrl K, Ctrl KDelete from cursor to end of line
Ctrl K, Ctrl ⌫Delete from cursor to start of line
Ctrl ]Indent current line(s)
Ctrl [Un-indent current line(s)
Ctrl ⇧ DDuplicate line(s)
Ctrl ⇧ JJoin line below to the end of the current line
Ctrl /Comment/un-comment current line
Ctrl ⇧ /Block comment current selection
Ctrl YRedo, or repeat last keyboard shortcut command
Ctrl ⇧ VPaste and indent correctly
Ctrl ␣Select next auto-complete suggestion
Ctrl Usoft undo; jumps to your last change before undoing change when repeated
Alt ⇧ WWrap Selection in html tag
Alt .Close current html tag

Windows-only ​

KeypressCommand
Ctrl Alt ↑Extra cursor on the line above
Ctrl Alt ↓Extra cursor on the line below

Linux-only ​

KeypressCommand
Alt ⇧ ↑Column selection up
Alt ⇧ ↓Column selection down
KeypressCommand
Ctrl PQuick-open files by name
Ctrl RGoto symbol
Ctrl ;Goto word in current file
Ctrl GGoto line in current file

Build ​

KeypressCommand
F7Build
Ctrl BBuild
Ctrl ⇧ BBuild selected
Ctrl BreakCancel build

General ​

KeypressCommand
Ctrl ⇧ PCommand prompt
Ctrl K, Ctrl BToggle side bar
Ctrl Alt ⇧ PShow scope name and syntax context backtrace in a popup

Find/Replace ​

KeypressCommand
Ctrl FFind
Ctrl HReplace
Ctrl ⇧ FFind in files

Tabs ​

KeypressCommand
Ctrl ⇧ TOpen last closed tab
Ctrl Page UpCycle up through tabs
Ctrl Page UpCycle down through tabs
Ctrl ⭾Switch to a previous tab, hold ⭾ and repeat ⭾ to cycle through previous tabs
Ctrl ⇧ ⭾Switch in reverse order to a previous tab, hold Ctrl ⇧ and repeat ⭾ to cycle through previous tabs in reverse
Ctrl WClose current tab
Alt [1-9]Switch to tab number

Split window ​

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

Folding ​

KeypressCommand
Ctrl ⇧ [Fold
Ctrl ⇧ ]Unfold
Ctrl K, Ctrl 1 to Ctrl K, Ctrl 9Fold by level 1 to 9
Ctrl K, Ctrl TFold tag attributes

Bookmarks ​

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

Text manipulation ​

KeypressCommand
Ctrl K, Ctrl UTransform to upper case
Ctrl K, Ctrl LTransform to lower case