Skip to content

Latest commit

Β 

History

History
408 lines (300 loc) Β· 15.1 KB

sublime-keys-chtsht.md

File metadata and controls

408 lines (300 loc) Β· 15.1 KB

Sublime Text Keybindings Cheatsheet

Keybindings

Files

Action Keybind
Open new file ^ + O
New file ^ + N
New file (advanced) ^ + βŒ₯ + N πŸ”¨ AdvancedNewFile
Save file ^ + S
Close current file ^ + W πŸ”¨
Reopen closed file ^ + ⇧ + T πŸ”¨
Open current file again File > New View Into File

Quick Access

Action Keybind
Goto anything ^ + P πŸ”¨
Fuzzy search ^ + P + #
Line number ^ + P + :
Symbol ^ + P + @
Quick switch project ^ + βŒ₯ + P
Command palette ^ + ⇧ + P πŸ”¨
  • Access commands quickly
  • Quick way to learn key bindings for commands
  • Switch sintax mode

Editing & Selection

Line

Action Keybind
Swap line up ^ + ⇧ + ↑
Swap line down ^ + ⇧ + ↓
Delete line ^ + ⇧ + K
Duplicate line ^ + ⇧ + D

Multiple line

Action Keybind
Add additional cursors ^ + Click
Add previous line ^ + βŒ₯ + ↑
Add next line ^ + βŒ₯ + ↓
Vertical select ⇧ + R-Click Drag
Split into lines ^ + ⇧ + L

Tip: first select multiple lines and then use

Word

Action Keybind
Move one word at a time ^ + ← or β†’
Select one word at a time ^ + ⇧ + ← or β†’
Select current word ^ + D πŸ”¨
Select current line ^ + L πŸ”¨

Selection > Expand Selection to Paragraph

Convert Case

Action Keybind
Upper case ^ + K, ^ + U
Lower case ^ + K, ^ + L

Edit > Convert Case > Title Case

Clipboard

Action Keybind
Paste ^ + ⇧ + V ↔️ ^ + V
Paste and indent ^ + V ↔️ ^ + ⇧ + V

Bookmarks

Action Keybind
Toggle bookmark ^ + F2
Next bookmark F2
Prev bookmark ⇧ + F2
Clear bookmarks ^ + ⇧ + F2

Code

Goto

Action Keybind
Jump to matching bracket ^ + M πŸ”¨
Jump to next/prev place ^ + βŒ₯ + ← or β†’ Emmet
Selects next/prev tag ^ + βŒ₯ + , or . Emmet
Go to line ^ + G
Go to symbol ^ + R
Go to symbol in project ^ + ⇧ + R β›”
Go to definition F12 ⚠️ replace with ^ + βŒ₯ + ↓
Jump back βŒ₯ + -

Expand Selection

Action Keybind
Expand selection to tag ^ + ⇧ + A πŸ”¨
Expand selection to bracket ^ + ⇧ + M πŸ”¨
Expand selection to indentation ^ + ⇧ + J
Expand selection to scope ^ + ⇧ + ⎡

Indentation

Action Keybind
Indent or unindent line ^ + ] or [ πŸ”¨
Indent file F12 ⚠️

Edit > Line > Reindent

Snippets

Action Keybind
Add 'id' property to tag # Emmet
Add 'class' property to tag . Emmet

Folding

Action Keybind
Fold ^ + ⇧ + [
Unfold ^ + ⇧ + ]
Unfold all ^ + K, ^ J
Fold levels ^ + K, ^ + 1-9

Comment

Action Keybind
Toggle comment ^ + / πŸ”¨
Toggle block comment ^ + ⇧ + / πŸ”¨

Tag

Action Keybind
Close tag βŒ₯ + .
Expand selection to tag ^ + ⇧ + A
Wrap selection with tag βŒ₯ + ⇧ + W

Hyperlinks

Action Keybind
Open url, file, folder or search for word ^ + βŒ₯ + U πŸ”¨ Open URL
Wrao word / selection as link ^ + βŒ₯ + L Hyperlink Helper
Lookup with Google & link ^ + βŒ₯ + ⇧ + L Hyperlink Helper

File Navigation

Goto

Action Keybind
Switch file βŒ₯ + 1-9
Switch file next or previous ^ + β‡ž or β‡Ÿ
Cycle forward open tabs ^ + β‡₯
Cycle backward open tabs ^ + ⇧ + β‡₯
Palette of open files ^ + P
Focus on sidebar ^ + 0
Focus back to edit area when focus on sidebar βŽ‹
Reveal in sidebar ^ + βŒ₯ + S

Tab groups

Action Keybind
Navigate tab groups ^ + 1-9
Move file to new group ^ + K, ^ + ↑
Close group ^ + K, ^ + ↓
Origami
Action Keybind
Move focus to the pane in that direction ^ + K, Arrow
Move the current file to the destination ^ + K, ⇧ + Arrow
Clone the current file to the destination ^ + K, βŒ₯ + Arrow
Create an adjacent pane ^ + K, ^ + Arrow
Destroy an adjacent pane ^ + K, ^ + ⇧ + Arrow
Zoom the current pane so it takes up 90% of the screen ^ + K, ^ + Z
Unzoom (equally space all panes) ^ + K, ^ + ⇧ + Z
Adjust the top and bottom separator ^ + K, ^ + R
Adjust the left and right separator ^ + K, ^ + C

Find and Replace

Action Keybind
Find ^ + F
Next find ↡ or F3 πŸ”¨
Previous find ⇧ + ↡ or ⇧ + F3 πŸ”¨
Use selection for find ^ + E πŸ”¨
Incremental find ^ + I
Find and replace ^ + H
Replace next ^ + ⇧ + H
Use selection for replace ^ + ⇧ + E
Find in files ^ + ⇧ + F πŸ”¨
Next result F4
Previous result ⇧ + F4

Tip: turn off "Use Buffer" to see results in botton panel

Quick Find

Action Keybind
Quick find ^ + F3 πŸ”¨
Quick find all βŒ₯ + F3 πŸ”¨
Quick add next ^ + D πŸ”¨
Quick skip next ^ + K, ^ + D πŸ”¨
Undo selection ^ + U πŸ”¨

View

Font Size

Action Keybind
Larger font ^ + =
Smaller font ^ + -

Layout

Action Keybind
Single βŒ₯ + ⇧ + 1
Two columns βŒ₯ + ⇧ + 2
Four grid βŒ₯ + ⇧ + 4

Console

Action Keybind
Show Console ^ + '

Useful commands

Action Keybind
Show command actions sublime.log_commands(True)

Automation

Autocomplete

Action Keybind
Auto complete list ^ + Spacebar
Auto complete commit β‡₯

Snippets

Action Keybind
Displays available snippets ^ + ⇧ + P + "snip"

Macros

Action Keybind
Start/end macro recording ^ + Q
Playback macro ^ + ⇧ + Q

Utilities

Action Keybind
Open system color picker ^ + ⇧ + C SideBarEnhacements

Context Tools

PlainTasks

PlainTasks

Action Keybind
Add new task ^ + Enter
Mark task as done (toggle) ^ + D
Archive task ^ + ⇧ + A
Tag task priority as Critical C + β‡₯
Tag task priority as High H + β‡₯
Tag task priority as Low L + β‡₯
Tag task priority as Today T + β‡₯

Examples

Copy/paste text inside html tags, edit and copy/paste back
Action Keybind
Select tag ^ + D
Move right ^ + β†’
Expand tag selection ^ + ⇧ + A
Copy ^ + C
New file ^ + N
Paste ^ + V
Edit text
Copy all ^ + A
Break selection into lines ^ + ⇧ + L
Copy multiple selection ^ + C
Go back to prev file
Paste into selection ^ + V

Installed Packages

AdvancedNewFile

File creation plugin https://github.com/skuroda/Sublime-AdvancedNewFile
https://github.com/skuroda/Sublime-AdvancedNewFile/wiki/Commands

ColorPicker

Color picker for Sublime Text http://weslly.github.io/ColorPicker/

Emmet

Improves HTML & CSS workflow https://github.com/sergeche/emmet-sublime

HyperlinkHelper

Quickly create hyperlinks from selected text or clipboard contents https://github.com/sentience/HyperlinkHelper

Open URL

Open URLs, files, folders, or google text under the cursor or in selected text for Sublime Text https://github.com/noahcoad/open-url

PlainTasks

An opinionated todo-list plugin for Sublime Text editor https://github.com/aziz/PlainTasks

SideBarEnhacements

Provides enhancements to the operations on Sidebar of Files and Folders for Sublime Text https://github.com/titoBouzout/SideBarEnhancements

Origami

Split the window however you like! Create new panes, delete panes, move and clone views from pane to pane. https://github.com/SublimeText/Origami

Other Packages

Missing Key Bindings

  • File > New View Into File
  • Edit > Line > Reindent
  • Edit > Convert Case > Title Case
  • Selection > Expand Selection to Paragraph

Conflicting Key Bindings

  • F12:
    • Goto > Goto definition...
    • Edit > Line > Reindent
  • Ctrl + Shift + /
    • Edit > Comment > Toggle Block Comment
    • Emmet Package > Toggle comment tag scope

Modified Key Bindings

Action Keybind
Edit > Paste ^ + V β†’ ^ + ⇧ + V
Edit > Paste and Indent ^ + ⇧ + V β†’ ^ + V

Legend

Emoji Description
⚠️ Conflict (fix in Preferences > Key Bindings)
πŸ”¨ Drill
↔️ Modified
β›” Not working or Missing

References

Resources