Skip to content
EverythingTool logo
Shortcut Keys

Sublime Text Shortcut Keys

Searchable list of Sublime Text keyboard shortcuts for multiple cursors, Goto Anything, find and build.

Sublime Text 4 (and 3) on Windows and Linux, default key bindings. On a Mac, use Cmd in place of Ctrl for most shortcuts.

General

Ctrl+Shift+POpen the Command Palette
Ctrl+PGoto Anything — open a file by name
Ctrl+`Show the Python console
Ctrl+Shift+NNew window
Ctrl+Shift+WClose the window
Ctrl+KthenCtrl+BShow or hide the sidebar
F11Toggle full screen
Shift+F11Distraction-free mode

Editing

Ctrl+XCut the line (when nothing is selected)
Ctrl+EnterInsert a line below
Ctrl+Shift+EnterInsert a line above
Ctrl+Shift+↑Move the line or selection up
Ctrl+Shift+↓Move the line or selection down
Ctrl+Shift+DDuplicate the line
Ctrl+Shift+KDelete the line
Ctrl+JJoin the next line to this one
Ctrl+]Indent
Ctrl+[Unindent
Ctrl+/Toggle line comment
Ctrl+Shift+/Toggle block comment
Ctrl+YRedo or repeat the last action
Ctrl+Shift+VPaste and match indentation
Ctrl+SpaceShow autocomplete
F9Sort lines
Ctrl+F9Sort lines, case-sensitive
Ctrl+KthenCtrl+UConvert to UPPERCASE
Ctrl+KthenCtrl+LConvert to lowercase
Ctrl+TSwap the characters around the cursor

Selection and multiple cursors

Ctrl+DSelect the word — press again to add the next match
Ctrl+KthenCtrl+DSkip this match and select the next one
Ctrl+UUndo the last selection step (soft undo)
Alt+F3Select all matches of the word
Ctrl+LSelect the line — repeat to extend
Ctrl+Shift+LSplit the selection into lines (a cursor on each)
Ctrl+Alt+↑Add a cursor on the line above
Ctrl+Alt+↓Add a cursor on the line below
Ctrl+Shift+MSelect everything inside the brackets
Ctrl+Shift+JSelect all lines with the same indentation
Ctrl+Shift+SpaceExpand the selection to the current scope
Ctrl+Shift+AExpand the selection to the enclosing tag
EscBack to a single cursor

Find and replace

Ctrl+FFind
Ctrl+HReplace
Ctrl+Shift+HReplace the next match
F3Find next
Shift+F3Find previous
Ctrl+F3Find the next match of the word under the cursor
Ctrl+IIncremental find
Ctrl+Shift+FFind in files
Alt+RToggle regular expressions in the find bar
Alt+CToggle case-sensitive search
Alt+WToggle whole-word search

Navigation

Ctrl+RGo to a symbol in the file
Ctrl+Shift+RGo to a symbol in the project
Ctrl+GGo to line
Ctrl+;Go to a word in the file
F12Go to definition
Ctrl+MJump to the matching bracket
Alt+−Jump back
Alt+Shift+−Jump forward
Ctrl+PgDnNext tab
Ctrl+PgUpPrevious tab
Alt+1Switch to tab 1 (Alt+2 to Alt+9 for the others)

Bookmarks and folding

Ctrl+F2Toggle a bookmark
F2Next bookmark
Shift+F2Previous bookmark
Ctrl+Shift+F2Clear all bookmarks
Ctrl+Shift+[Fold the block
Ctrl+Shift+]Unfold the block
Ctrl+KthenCtrl+1Fold all at level 1 (Ctrl+K, Ctrl+2 and so on for deeper levels)
Ctrl+KthenCtrl+JUnfold all
Ctrl+KthenCtrl+TFold tag attributes

Files, tabs and layout

Ctrl+NNew file
Ctrl+OOpen a file
Ctrl+SSave
Ctrl+Shift+SSave As
Ctrl+WClose the tab
Ctrl+Shift+TReopen the last closed tab
Alt+Shift+1Single-column layout
Alt+Shift+2Two-column layout
Alt+Shift+3Three-column layout
Alt+Shift+5Four-pane grid layout
Alt+Shift+8Two-row layout
Ctrl+Shift+1Move the file to group 1 (Ctrl+Shift+2 for group 2)
Ctrl+1Focus group 1 (Ctrl+2 for group 2)
Ctrl+=Increase font size
Ctrl+−Decrease font size

Build and run

Ctrl+BBuild (run the current build system)
Ctrl+Shift+BBuild with — choose a build variant
Ctrl+BreakCancel the build
F4Go to the next build result (error)
Shift+F4Go to the previous build result
Ctrl+Alt+PSwitch project
Share this tool WhatsApp X Facebook

How to use this list

Type what you want to do — “cursor”, “fold”, “layout” — or filter by section. Keys joined by + are pressed together; keys separated by a comma are pressed one after the other (press Ctrl+K, release, then the next keys). Download the PDF cheat sheet to keep beside your keyboard.

Why Sublime Text users love multiple selections

  • Ctrl+D selects the word under the cursor; each press adds the next match. Ctrl+K, Ctrl+D skips a match you don't want, and Ctrl+U steps back.
  • Ctrl+Shift+L turns a multi-line selection into one cursor per line — perfect for editing lists, CSV rows or SQL values.
  • Ctrl+P (Goto Anything) opens files, and with @, : or # jumps to a symbol, line or word.

Changing key bindings

Open Preferences → Key Bindings. The default bindings appear on the left and your own on the right; copy a line to the right and change its keys. Switching editors? Compare with the VS Code shortcut list.

Frequently asked questions

How do I edit multiple lines at once in Sublime Text?

Select the lines and press Ctrl+Shift+L to put a cursor at the end of each. You can also press Ctrl+Alt+Up or Down to add cursors above or below, or Ctrl+D to select the next match of a word.

How do I open a file quickly?

Press Ctrl+P (Goto Anything) and type part of the file name. Add @ to jump to a symbol, : to go to a line number, or # to search for a word in that file.

How do I split the screen in Sublime Text?

Alt+Shift+2 gives two columns and Alt+Shift+8 gives two rows. Move the current file to the other group with Ctrl+Shift+2, and switch focus with Ctrl+1 or Ctrl+2.

How do I sort lines?

Select the lines and press F9. Ctrl+F9 sorts case-sensitively. Use the Command Palette (Ctrl+Shift+P) for Reverse, Unique and Shuffle.

Last updated: 24 September 2026Suggest an improvement · Report a problem

Official websites, opening in a new tab. EverythingTool isn't affiliated with them.