Sublime Text 2 - Useful Shortcuts
h1. Sublime Text 2 - Useful Shortcuts (Windows)
h2. General
| *Ctrl+KB* | toggle side bar |
| *Ctrl+Shift+P* | command prompt |
| *Ctrl+P* | get file from project |
| *Ctrl+`* | python console |
| *Ctrl+N* | new file |
h2. Editing
| *Ctrl+L* | select line (repeat select next lines) |
| *Ctrl+R* | select ID etc |
| *Ctrl+D* | select word (repeat select others occurrences in context for multiple editing) |
| *Alt+F3* | select word (AND select others occurrences in context)|
| *Ctrl+Shift+A* | select tag |
| *Ctrl+Shift+N* | select line to parent tag |
| *Alt+Shift+W* or Ctrl+Alt+Enter | wrap selection with tag |
| *Ctrl+X* | delete line |
| *Ctrl+KK* | delete from cursor to end of line |
| *Ctrl+K+Backspace* | delete from cursor to start of line |
| *Ctrl+Shift+D* | duplicate line(s) |
| *Ctrl+J* | join lines |
| *Ctrl+Click* | Multiple select with cursor *:*|
| *Ctrl+Y* | redo or repeat |
| *Ctrl+Shift+V* | past and ident |
| *Alt+/* | autocomplete (repeat to select next suggestion). Default is Ctrl+Space, but it always reserved for language change in Chinese Windows environment. |
| *Ctrl+M* | jump to matching brackets |
| *Ctrl+U* | soft undo (movement undo) |
h2. Navigation/Goto Anywhere
| *Ctrl+P* | goto anyway. Search files by name in your project. |
| *Ctrl+R* | goto symbol(functions and classes) in the file. Same as *Ctrl+P*, then type *@*|
| *Ctrl+;* | goto word in current file. Same as *Ctrl+P*, then type *#*|
| *Ctrl+G* | goto line in current file. Same as *Ctrl+P*, then type *:*|
| *Tab* | indent |
| *Shift+Tab* | un-indent |
h2. Find/Replace
| *Ctrl+F* | find |
| *Ctrl+H* | replace |
| *Ctrl+Shift+F* | find in files |
h2. Splits/Tabs
| *Alt+Shift+1* | single column |
| *Alt+Shift+2* | two columns |
| *Alt+Shift+5* | grid (4 groups) |
| *Ctrl+[1,2,3,4]* | focus group |
| *Ctrl+Shift+[1,2,3,4]* | move file to group |
| *Ctrl+[1,2,3...]* | select tab |