Sublime Text Keyboard Shortcut Keys: Complete List (With Functions Explained)

Sublime Text is the editor that made multi-cursor editing and fuzzy file-finding mainstream — and its whole interface runs from the keyboard. This complete list of Sublime Text keyboard shortcut keys (Windows/Linux) explains Goto Anything, multi-selection, editing and layout shortcuts in plain words.

Goto and Command Shortcuts

Shortcut KeyFunction
Ctrl + PGoto Anything (open a file by fuzzy name)
Ctrl + P, then type @Goto Symbol within the file list search
Ctrl + RGoto Symbol in the current file
Ctrl + Shift + RGoto Symbol in the whole project
Ctrl + GGoto a line number (or Ctrl + P, then :number)
Ctrl + Shift + POpen the Command Palette (every command)
Ctrl + MJump to the matching bracket
Ctrl + Shift + MSelect the contents inside the brackets
Ctrl + ;Goto Word (jump between occurrences flows)
F12Goto Definition (in supported languages/plugins)
Alt + - / Alt + Shift + -Jump back / forward through navigation history
Ctrl + Tab / Ctrl + Shift + TabNext / previous open file (stack order)
Ctrl + Page Up / Page DownPrevious / next file in tab order
Ctrl + Shift + TReopen the last closed file
Ctrl + WClose the current file

Multi-Selection Shortcuts (Sublime's signature)

Shortcut KeyFunction
Ctrl + DSelect the next occurrence of the current word/selection
Ctrl + K, then Ctrl + DSkip this occurrence and select the next
Alt + F3Select ALL occurrences at once
Ctrl + Shift + LSplit the selection into one cursor per line
Ctrl + Alt + Up / Down ArrowAdd a cursor on the line above / below
Alt + Shift + Arrow + drag / clickColumn selection with the mouse/keyboard
Ctrl + Shift + SpaceExpand the selection to the enclosing scope
Ctrl + Shift + AExpand the selection to the enclosing tag (HTML/XML)
Ctrl + Shift + JExpand the selection to the indentation level
EscCollapse back to a single cursor

Editing Shortcuts

Shortcut KeyFunction
Ctrl + /Toggle line comment
Ctrl + Shift + /Toggle block comment
Ctrl + Shift + DDuplicate the line/selection
Ctrl + Shift + KDelete the line
Ctrl + JJoin the next line to the current one
Ctrl + Shift + Up / Down ArrowSwap the line up / down
Ctrl + ] / [Indent / unindent lines
Ctrl + Shift + VPaste and indent (match the current indentation)
Ctrl + K, then Ctrl + UMake the selection UPPER CASE
Ctrl + K, then Ctrl + LMake the selection lower case
Ctrl + K, then Ctrl + TMake the selection Title Case
Ctrl + K, then Ctrl + SpaceSet a mark
Ctrl + K, then Ctrl + ASelect to the mark
Ctrl + K, then Ctrl + WDelete to the mark
Ctrl + K, then Ctrl + KDelete from the caret to the end of the line
Ctrl + K, then Ctrl + BackspaceDelete from the caret to the start of the line
Ctrl + EnterInsert a line after
Ctrl + Shift + EnterInsert a line before
Tab (with an Emmet abbreviation)Expand the Emmet abbreviation (HTML/CSS)

Find, Layout and General Shortcuts

Shortcut KeyFunction
Ctrl + FFind
Ctrl + HReplace
F3 / Shift + F3Find next / previous
Ctrl + Shift + FFind in Files (project-wide search)
Ctrl + IIncremental find
Alt + Shift + 1Single-pane layout
Alt + Shift + 2 / 3 / 4Split into 2 / 3 / 4 columns
Alt + Shift + 8 / 9Split into 2 rows / grid variants
Ctrl + 1 to Ctrl + 4Focus the editor group (pane) by number
Ctrl + Shift + 1 to 4Move the current file to that group
Ctrl + K, then Ctrl + BToggle the sidebar
Ctrl + ` (accent)Toggle the console
Ctrl + BRun the build system
Ctrl + Shift + BRun the build with a chosen variant
F11Toggle full screen
Shift + F11Toggle Distraction Free mode
F6Toggle spell checking
Ctrl + N / Ctrl + O / Ctrl + SNew / open / save a file
Ctrl + Shift + SSave As

Tips for Sublime Text Users

Ctrl + P is the center of Sublime: fuzzy-type any file name, append @ for symbols, : for lines, # for words — the entire project is four keystrokes away. The selection trio Ctrl + D (next occurrence), Alt + F3 (all occurrences) and Ctrl + Shift + L (a cursor per line) replaces most scripting for batch edits. And Ctrl + Shift + P holds every command you'll ever forget, including package controls and settings.

Frequently Asked Questions

How do I select all occurrences of a word in Sublime Text?

Put the caret on the word and press Alt + F3 — every occurrence gets its own cursor. Ctrl + D adds them one by one instead.

How do I open a file quickly in Sublime Text?

Press Ctrl + P and type a fuzzy part of the name; Enter opens it. Add @name for a symbol or :42 for line 42 in the same box.

How do I edit multiple lines at once in Sublime?

Select the lines and press Ctrl + Shift + L — each line gets a cursor, so typing edits them all simultaneously.

How do I reopen a closed tab in Sublime Text?

Press Ctrl + Shift + T — the same shortcut as web browsers.

By Umar Farooq, Tech Know.

Post a Comment

0 Comments