Skip to content

Instantly share code, notes, and snippets.

@enliven-
Created June 30, 2014 06:04
Show Gist options
  • Save enliven-/0bed278930e13c187cd4 to your computer and use it in GitHub Desktop.
Save enliven-/0bed278930e13c187cd4 to your computer and use it in GitHub Desktop.
sublime keyboard shortcuts
Editing
Windows
Ctrl + Alt + Up Column selection up
Ctrl + Alt + Down Column selection down
Linux
Alt + ⇧ + Up Column selection up
Alt + ⇧ + Down Column selection down
Navigation/Goto Anywhere
Keypress Command
Ctrl + P Quick-open files by name
Ctrl + R Goto symbol
Ctrl + ; Goto word in current file
Ctrl + G Goto line in current file
General
Keypress Command
Ctrl + ⇧ + P Command prompt
Ctrl + KB Toggle side bar
Ctrl + ⇧ + Alt + P Show scope in status bar
Find/Replace
Keypress Command
Ctrl + F Find
Ctrl + H Replace
Ctrl + ⇧ + F Find in files
Tabs
Keypress Command
Ctrl + ⇧ + t Open last closed tab
Ctrl + PgUp Cycle up through tabs
Ctrl + PgDn Cycle down through tabs
Ctrl + ⇆ Find in files
Alt + [NUM] Switch to tab number [NUM] where [NUM] <= number of tabs
Split window
Keypress Command
Alt + ⇧ + 2 Split view into two columns
Alt + ⇧ + 1 Revert view to single column
Alt + ⇧ + 5 Set view to grid (4 groups)
Ctrl + [NUM] Jump to group where num is 1-4
Ctrl + ⇧ + [NUM] Move file to specified group where num is 1-4
Bookmarks
Keypress Command
Ctrl + F2 Toggle bookmark
F2 Next bookmark
⇧ + F2 Previous bookmark
Ctrl + ⇧ + F2 Clear bookmarks
Text manipulation
Keypress Command
Ctrl + KU Transform to Uppercase
Ctrl + KL Transform to Lowercase
Basic
F11 Full Screen
shift + F11 Distraction Free Mode
ctrl + shift + p Command Palette
ctrl + ` Show Console
ctrl + k + b Show/Hide Sidebar
ctrl + / Comment
ctrl + shift + / Block Comment
ctrl + k + u Uppercase
ctrl + k + l Lowercase
Selections
ctrl + d Select Word
ctrl + d Use multiple times to select next instance of the selected word
ctrl + click Create multiple cursors for multi-editing
ctrl + shift + space Expand selection to scope. Repeating keeps expanding.
ctrl + shift + m Expand to brackets
ctrl + shift + j Expand to indentation
Go To
ctrl + p Open file based on name
ctrl + g Go to line number
ctrl + r Go to symbol
ctrl + p THEN @ Open file based on name and search for symbol
ctrl + m Go to matching bracket
Lines
ctrl + l Select line
ctrl + shift + k Delete line
ctrl + ] Indent
ctrl + [ Unindent
ctrl + enter Insert line after
ctrl + shift + enter Insert line before
ctrl + shift + ↑ Swap line up
ctrl + shift + ↓ Swap line down
ctrl + shift + d Duplicate line
ctrl + j Join Line
Code Folding
ctrl + shift + [ Fold
ctrl + shift + ] Unfold
ctrl + k + j Unfold All
Search / Find / Replace
ctrl + f Find
F3 Find next
shift + F3 Find previous
ctrl + shift + f Search all files in a folder
ctrl + h Replace
ctrl + f THEN alt + enter Find a certain term then select them all for multi-editing
Tabs and Window Panes
ctrl + shift + n New Window
ctrl + n New Tab
alt + # Select a Tab (ie alt + 3)
ctrl + w Close Tab
ctrl + shift + # Move tab to a Pane (ie ctrl + shift + 2)
ctrl + # Focus on a Pane (ie ctrl + 2)
alt + shift + 1 One Column
alt + shift + 2 Two Columns
alt + shift + 3 Three Columns
alt + shift + 4 Four Columns
alt + shift + 8 Two Rows
alt + shift + 9 Three Rows
alt + shift + 5 Two x Two Grid
Bookmarks
ctrl + F2 Create Bookmark
F2 Next Bookmark
shift + F2 Previous Bookmark
ctrl + shift + F2 Clear Bookmarks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment