Sublime Text 4 cheat sheet

64 shortcuts in 10 lessons

Reading a list won't make them stick. ShortcutFoo has you type each shortcut, then brings it back just before you'd forget it.

Text Editing Beginner

9 shortcuts
  • ^X
    Cut line
  • ^↵
    Insert line after
  • ^⇧↵
    Insert line before
  • ^⇧UP
    Move line/selection up
  • ^⇧DOWN
    Move line/selection down
  • ^L
    Select line - Repeat to select next lines
  • ^D
    Select word - repeat select other occurrences
  • ^M
    Go to matching parentheses
  • ^⇧M
    Select all contents of the current parentheses

Text Editing Intermediate

12 shortcuts
  • ^K^K
    Delete from cursor to end of line
  • ^K^BACKSPACE
    Delete from cursor to start of line
  • ^]
    Indent current line(s)
  • ^[
    Un-indent current line(s)
  • ^⇧D
    Duplicate line(s)
  • ^J
    Join line below to the end of the current line
  • ^/
    Comment/un-comment current line
  • ^⇧?
    Block comment current selection
  • ^Y
    Redo or repeat last keyboard shortcut command
  • ^⇧V
    Paste and indent correctly
  • ^SPACE
    Select next auto-complete suggestion
  • ^U
    Soft undo

Text Navigation/Goto Anywhere

4 shortcuts
  • ^P
    Quick-open files by name
  • ^;
    Goto word in current file
  • ^R
    Goto symbol
  • ^G
    Goto line in current file

General

7 shortcuts
  • ⌥.
    Close tag
  • ^K^C
    Scroll to selection
  • ^⇧A
    Select tag
  • ^⇧J
    Select indentation
  • ^⇧SPACE
    Select scope
  • ^K^B
    Toggle side bar
  • ^⇧P
    Command prompt

Find/Replace

5 shortcuts
  • ⇧F3
    Find previous
  • F3
    Find next
  • ^F
    Find
  • ^H
    Replace
  • ^⇧F
    Find in files

Split window

5 shortcuts
  • ⌥⇧@
    Split view into two columns
  • ⌥⇧!
    Revert view to single column
  • ⌥⇧%
    Set view to grid (4 groups)
  • ^2
    Jump to group 2
  • ^⇧@
    Move file to group 2

Text manipulation

5 shortcuts
  • ^K^L
    Transform to lowercase
  • ^K^U
    Transform to uppercase
  • ^⇧K
    Delete line
  • ^BACKSPACE
    Delete word backwords
  • ^DEL
    Delete word forwards

Text Selection

6 shortcuts
  • ^⌥DOWN
    Add new line below with cursor
  • ^K^D
    Skip selection
  • ^⇧L
    Split selection into lines
  • ⌥F3
    Add cursor at all occurrences of a word
  • ^⌥UP
    Add new line above with cursor
  • ESC
    Return to single selection

Code Folding and Marks

7 shortcuts
  • ^K^G
    Clear mark
  • ^K^X
    Switch location with mark
  • ^K^A
    Select to mark
  • ^K^
    Set mark
  • ^K^J
    Unfold all
  • ^⇧]
    Unfold code
  • ^⇧[
    Fold code

Bookmarks

4 shortcuts
  • ⌥F2
    Select all bookmarks
  • ⇧F2
    Previous bookmark
  • F2
    Next bookmark
  • ^F2
    Toggle bookmark