Skip to content

Instantly share code, notes, and snippets.

@fire9
Created December 25, 2017 10:17
Show Gist options
  • Save fire9/9da00fa366a7301713ae30c9c75925db to your computer and use it in GitHub Desktop.
Save fire9/9da00fa366a7301713ae30c9c75925db to your computer and use it in GitHub Desktop.
Sublime Text3 Cheat Sheet

Sublime Text3 Cheat Sheet

Text Editing Beginner

快捷键 操作
⌃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

快捷键 操作
⌃K⌃K Delete from cursor to end of line
⌃KBACKSPACE 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

快捷键 操作
⌃P Quick-open files by name
⌃; Goto word in current file
⌃R Goto symbol
⌃G Goto line in current file

General

快捷键 解释
⌥. 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

快捷键 操作
⇧F3 Find previous
F3 Find next
⌃F Find
⌃H Replace
⇧⌃F Find in files

Split window

快捷键 操作
⇧⌥2 Split view into two columns
⇧⌥1 Revert view to single column
⇧⌥5 Set view to grid (4 groups)
⌃2 Jump to group 2
⇧⌃2 Move file to group 2

Text manipulation

快捷键 操作
⌃K⌃L Transform to lowercase
⌃K⌃U Transform to uppercase
⇧⌃K Delete line
⌃BACKSPACE Delete word backwords
⌃DEL Delete word forwards

Text Selection

快捷键 操作
⌥⌃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

快捷键 操作
⌃K⌃G Clear mark
⌃K⌃X Switch location with mark
⌃K⌃A Select to mark
⌃K⌃[SPACE] Set mark
⌃K⌃J Unfold all
⇧⌃] Unfold code
⇧⌃[ Fold code

Bookmarks

快捷键 操作
⌥F2 Select all bookmarks
⇧F2 Previous bookmark
F2 Next bookmark
⌃F2 Toggle bookmark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment