Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Sublime Text 2 - Useful Shortcuts [Windows version]

Sublime Text 2 – Useful Shortcuts (Windows)

General

ctrl+T go to file
ctrl+⌃P go to project
ctrl+R go to methods
⌃G go to line
ctrl+KB toggle side bar
ctrl+shift+P command prompt
⌃ ` python console
ctrl+shift+N new window (useful for new project)

Editing

ctrl+L select line (repeat select next lines)
ctrl+D select word (repeat select others occurrences in context for multiple editing)
⌃shift+M select content into brackets
ctrl+shift+↩ insert line before
ctrl+↩ inter line after
⌃shift+K delete line
ctrl+KK delete from cursor to end of line
ctrl+K+delete delete from cursor to start of line
ctrl+shift+D duplicate line(s)
ctrl+J join lines
ctrl+KU upper case
ctrl+KL lower case
ctrl+ / comment
ctrl+alt+ / block comment
ctrl+Y redo or repeat
ctrl+shift+V past and ident
⌃ space autocomplete (repeat to select next suggestion)
⌃M jump to matching brackets
ctrl+U soft undo (movement undo)
ctrl+shift+U soft redo (movement redo)

XML/HTML

ctrl+shift+A select content into tag
ctrl+alt+ . close tag

Find/Replace

ctrl+F find
ctrl+alt+F replace
ctrl+alt+G find next occurrence of current word
ctrl+⌃G select all occurrences of current word for multiple editing
ctrl+shift+F find in files

Splits/Tabs

ctrl+alt+1 single column
ctrl+alt+2 two columns
ctrl+alt+5 grid (4 groups)
⌃[1,2,3,4] focus group
⌃shift+[1,2,3,4] move file to group
ctrl+[1,2,3…] select tab

Bookmarks

ctrl+F2 toggle bookmark
F2 next bookmark
shift+F2 previous bookmark
ctrl+shift+F2 clear bookmarks

Marks

ctrl+K space set mark // ctrl+K; for me
ctrl+KW delete from cursor to mark
ctrl+KA select from cursor to mark
ctrl+KG clear mark
shift+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment