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 shortcutsNavigation
8 shortcutsEditing
11 shortcutsSelection And Search
11 shortcutsMultiple 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.
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.