Skip to content

Instantly share code, notes, and snippets.

@DanAntFerrari
Created January 4, 2013 14:13
Show Gist options
  • Save DanAntFerrari/4452843 to your computer and use it in GitHub Desktop.
Save DanAntFerrari/4452843 to your computer and use it in GitHub Desktop.
Sublime Text 2 - Useful Shortcuts
=================================
*Tested in Windows: Crtl == command*
Open/Goto
_________
- Crtl+p: go to file
- Crtl+r: go to function/methods
- Crtl+shift+p: command palette
- ctrl+g: go to line
- ctrl+`: Toggle Python console
Editing
_______
- Crtl+l: select line (repeat select next lines)
- Crtl+d: select word (repeat select others occurrences in context for multiple
editing)
- Crtl+shift+enter: insert line before
- Crtl+enter: inter line after
- ctrl+shift+k: delete line
- Crtl+k-k: delete from cursor to end of line
- Crtl+k-backspace: delete from cursor to start of line
- Crtl+shift+d: duplicate line(s)
- Crtl+k-u: upper case
- Crtl+k-l: lower case
- Crtl+/: comment
- Crtl+alt+/: block comment
- Crtl+y: redo or repeat
- Crtl+shift+z: past and ident
- ctrl+space: autocomplete (repeat to select next suggestion)
- ctrl+m: jump to matching brackets
XML/HTML
________
- Crtl+shift+a: select content into tag
- Crtl+alt+.: close tag
Find/Replace
____________
- Crtl+f: find
- Crtl+alt+f: replace
- Crtl+alt+g: find next occurrence of current word
- Crtl+ctrl+g: select all occurrences of current word for multiple editing
- Crtl+shift+f: find in files
Bookmarks
_________
- Crtl+f2: Toggle bookmark
- f2: next bookmark
- shift+f2: previous bookmark
- Crtl+shift+f2: clear bookmarks
Marks
_____
- Crtl+k-space: set mark // Crtl+k-; for me
- Crtl+k-w: delete from cursor to mark
- Crtl+k-a: select from cursor to mark
- Crtl+k-g: clear mark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment