Skip to content

Instantly share code, notes, and snippets.

@mahmoodkhan
Last active April 8, 2017 12:40
Show Gist options
  • Save mahmoodkhan/07cb891fb6ff1bd018f4b2c83b6f6f97 to your computer and use it in GitHub Desktop.
Save mahmoodkhan/07cb891fb6ff1bd018f4b2c83b6f6f97 to your computer and use it in GitHub Desktop.
Sublime Text 3 handy shortcuts
Sublime Text 3 - Handy Shortcuts
=================================
Open/Goto
_________
- command+t: go to file
- command+ctrl+p: go to project
- command+r: go to methods
- command+shift+p: command prompt
- ctrl+g: go to line
- ctrl+`: Python console
Editing
_______
- command+l: select line (repeat select next lines)
- command+d: select word (repeat select others occurrences in context for multiple editing)
- ctrl+shift+m: select content into brackets
- command+shift+enter: insert line before
- command+enter: inter line after
- ctrl+shift+k: delete line
- command+k-k: delete from cursor to end of line
- command+k-backspace: delete from cursor to start of line
- command+shift+d: duplicate line(s)
- command+j: join lines
- command+k-u: upper case
- command+k-l: lower case
- command+/: comment
- command+alt+/: block comment
- command+y: redo or repeat
- command+shift+z: past and ident
- ctrl+space: autocomplete (repeat to select next suggestion)
- ctrl+m: jump to matching brackets
XML/HTML
________
- command+shift+a: select content into tag
- command+alt+.: close tag
Find/Replace
____________
- command+f: find
- command+alt+f: replace
- command+alt+g: find next occurrence of current word
- command+ctrl+g: select all occurrences of current word for multiple editing
- command+shift+f: find in files
Splits/Tabs
___________
- command+alt+1: Single column
- command+alt+2: Two columns
- command+alt+5: Grid (4 groups)
- ctrl+[1,2,3,4]: Focus group
- ctrl+shift[1,2,3,4]: Move file to group
- command+[1,2,3...] Select tab
Bookmarks
_________
- command+f2: Toggle bookmark
- f2: next bookmark
- shift+f2: previous bookmark
- command+shift+f2: clear bookmarks
Marks
_____
- command+k-space: set mark // super+k-; for me
- command+k-w: delete from cursor to mark
- command+k-a: select from cursor to mark
- command+k-g: clear mark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment