› Sublime Text

Sublime Text Shortcuts

Edit repeated text with multiple cursors, toggle comments and navigate files in Sublime Text 4. Compare the default Windows, Mac and Linux key bindings.

Source: Official documentation · Dataset date 2026-10

38
Shortcuts
4
Categories

Practical keyboard guide

Shortcuts to learn first

This reference contains 38 assigned entries. Choose your system, search the commands and print a reference. The guides explain when each shortcut applies.

  • Select Next OccurrenceCtrlD
  • Skip next occurrenceCtrlKCtrlD
  • Undo selectionCtrlU
  • Toggle line commentCtrl/
  • Command PaletteCtrlShiftP
  • Goto AnythingCtrlP

General

8 shortcuts
Command Palette
CtrlShiftP
Ctrl+Shift+P · Cmd+Shift+P
New File
CtrlN
Ctrl+N · Cmd+N
Open File
CtrlO
Ctrl+O · Cmd+O
Save File
CtrlS
Ctrl+S · Cmd+S
Save As
CtrlShiftS
Ctrl+Shift+S · Cmd+Shift+S
Close File
CtrlW
Ctrl+W · Cmd+W
Close Window
CtrlShiftW
Ctrl+Shift+W · Cmd+Shift+W
Toggle Sidebar
CtrlKCtrlB
Ctrl+K Ctrl+B · Cmd+K Cmd+B

Navigation

8 shortcuts
Goto Anything
CtrlP
Ctrl+P · Cmd+P
Goto Symbol
CtrlR
Ctrl+R · Cmd+R
Goto Symbol In Project
CtrlShiftR
Ctrl+Shift+R · Cmd+Shift+R
Goto Line
CtrlG
Ctrl+G
Goto Word In File
Ctrl;
Ctrl+;
Next File
CtrlPageDown
Ctrl+PageDown · Cmd+Shift+]
Previous File
CtrlPageUp
Ctrl+PageUp · Cmd+Shift+[
Switch Header Or Implementation
AltO
Alt+O · Cmd+Opt+↑

Editing

11 shortcuts
Undo
CtrlZ
Ctrl+Z · Cmd+Z
Redo
CtrlShiftZ
Ctrl+Shift+Z · Cmd+Shift+Z
Cut
CtrlX
Ctrl+X · Cmd+X
Copy
CtrlC
Ctrl+C · Cmd+C
Paste
CtrlV
Ctrl+V · Cmd+V
Duplicate Line
CtrlShiftD
Ctrl+Shift+D · Cmd+Shift+D
Delete Line
CtrlShiftK
Ctrl+Shift+K
Join Lines
CtrlShiftJ
Ctrl+Shift+J · Cmd+Shift+J
Redo or repeat
CtrlY
Ctrl+Y · Cmd+Y
Toggle line comment
Ctrl/
Ctrl+/ · Cmd+/
Toggle block comment
CtrlShift/
Ctrl+Shift+/ · Cmd+Opt+/

Selection And Search

11 shortcuts
Find
CtrlF
Ctrl+F · Cmd+F
Find Next
F3
F3 · Cmd+G
Find Previous
ShiftF3
Shift+F3 · Cmd+Shift+G
Replace
CtrlH
Ctrl+H · Cmd+Opt+F
Select All
CtrlA
Ctrl+A · Cmd+A
Select Next Occurrence
CtrlD
Ctrl+D · Cmd+D
Select All Occurrences
AltF3
Alt+F3 · Ctrl+Cmd+G
Split Selection Into Lines
CtrlShiftL
Ctrl+Shift+L · Cmd+Shift+L
Skip next occurrence
CtrlKCtrlD
Ctrl+K Ctrl+D · Cmd+K Cmd+D
Undo selection
CtrlU
Ctrl+U · Cmd+U
Return to single selection
Escape
Escape

Multiple cursors: select, skip and undo a selection

Place the caret on a word, then press Ctrl+D on Windows/Linux or Command+D on Mac to add matching occurrences. To change several copies of color to colour, select only the intended occurrences before typing. Ctrl+K then Ctrl+D skips the next occurrence; on Mac use Command+K then Command+D. These are two successive chords, not all keys held together.

Ctrl+U / Command+U undoes a selection step without undoing your text edit. Alt+F3 selects all occurrences on Windows/Linux; Mac uses Control+Command+G. Ctrl+Shift+L / Command+Shift+L splits selected lines into cursors. Escape returns to one selection. Use the smaller selection when the same word also appears in text you do not want to change.

Comment a line or a selected block

Ctrl+/ on Windows/Linux or Command+/ on Mac toggles line comments. Select several lines to toggle them together. For a block comment, use Ctrl+Shift+/ on Windows/Linux or Command+Option+/ on Mac. For example, select a short section of CSS, toggle the block comment, then repeat the shortcut to restore it.

Comment syntax depends on the file’s selected language. Check the syntax label when a shortcut seems to insert the wrong characters. Slash shortcuts can also depend on your keyboard layout and custom bindings. Redo is Ctrl+Shift+Z / Command+Shift+Z; Ctrl+Y / Command+Y is the separate Redo or Repeat command.

Navigate files and inspect a conflicting binding

Open Goto Anything with Ctrl+P / Command+P and type a filename. Use Ctrl+R / Command+R for symbols, or Ctrl+G on Windows/Linux and Control+G on Mac for a line number. The Command Palette is Ctrl+Shift+P / Command+Shift+P. To toggle the sidebar, press Ctrl+K then Ctrl+B, or Command+K then Command+B on Mac.

Open Preferences > Key Bindings to compare platform defaults with your user bindings. Plugins and later bindings can override a command; context rules may restrict it to a particular panel or selection. Check the installed defaults before assigning a replacement. The reference preserves chord sequences; the trainer skips sequences that require more than one chord. In the checked build, Join Lines uses Ctrl+Shift+J on Windows/Linux or Command+Shift+J on Mac; older references may show the former Ctrl/Command+J binding.

Continue in your code editor

Use these references when switching between the application and your editor.

Official sources and verification

Checked on 13 October 2026 against all three default keymaps in official Sublime Text 4 portable build 4215, plus the keyboard-selection and key-binding documentation. This is a documentation/package review, not an interactive editing test.

Multiple selection · Key binding rules · Official build and default keymaps · Column selection

Frequently asked questions

How do I create multiple cursors in Sublime Text?

Use Ctrl+D on Windows/Linux or Command+D on Mac to select another matching occurrence. Split selected lines with Ctrl+Shift+L / Command+Shift+L.

How do I skip a match in Sublime Text?

Press Ctrl+K then Ctrl+D on Windows/Linux, or Command+K then Command+D on Mac. Use Ctrl+U / Command+U to undo a selection step.

What is the Sublime Text comment shortcut?

Line comments use Ctrl+/ on Windows/Linux and Command+/ on Mac. Block comments use Ctrl+Shift+/ and Command+Option+/ respectively.

Why does a Sublime Text shortcut do something else?

Check platform defaults, user bindings, plugins, keyboard layout and context. Preferences > Key Bindings shows the installed bindings.

Which operating systems are included for Sublime Text?

Windows, macOS and Linux are covered. Defaults come from build 4215; user bindings, plugins and keyboard layouts can change them.

See also

Explore shortcuts by key

Key lookup

Compare shortcuts

Sublime Text / Zed · Sublime Text / VS Code

No shortcuts match your search.