Shortcut | Command |
---|---|
command + shift + p |
open command pallette |
command + left arrow |
move cursor to the beginning of current line |
command + right arrow |
move cursor to the end of current line |
command + up arrow |
move cursor to the top line of the file |
command + down arrow |
move cursor to the last line of the file |
command + multiple mouseclicks |
create multiple cursors within file |
option + mousedrag |
create multiple cursors along mousepath |
command + x |
cut current line and copy it to clipboard |
command + f |
open up file search bar |
command + shift + f |
open up search bar for searching all open files |
command + shift + d |
duplicate current line |
command + n |
open new file |
command + w |
close current tab |
command + shift + [ |
shift through tabs to the left |
command + shift + ] |
shift through tabs to the right |
command + t |
bring up drop down menu of currently open files |
command + k + b |
toggle side bar |
h1. Sublime Text 2 - Useful Shortcuts (Mac OS X)
h2. General
| ⌘T | go to file | | ⌘⌃P | go to project | | ⌘R | go to methods | | ⌃G | go to line | | ⌘KB | toggle side bar | | ⌘⇧P | command prompt | | ⌘⇧N | new window (useful for new project) |
h2. Editing
| ⌘L | select line (repeat select next lines) | | ⌘D | select word (repeat select others occurrences in context for multiple editing) | | ⌃⇧M | select content into brackets | | ⌘⇧↩ | insert line before | | ⌘↩ | inter line after | | ⌃⇧K | delete line | | ⌘KK | delete from cursor to end of line | | ⌘K⌫ | delete from cursor to start of line | | ⌘⇧D | duplicate line(s) | | ⌘J | join lines | | ⌘KU | upper case | | ⌘KL | lower case | | ⌘ / | comment | | ⌘⌥ / | block comment | | ⌘Y | redo or repeat | | ⌘⇧V | past and ident | | ⌃ space | autocomplete (repeat to select next suggestion) | | ⌃M | jump to matching brackets | | ⌘U | soft undo (movement undo) | | ⌘⇧U | soft redo (movement redo) |
h2. XML/HTML
| ⌘⇧A | select content into tag | | ⌘⌥ . | close tag |
h2. Find/Replace
| ⌘F | find | | ⌘⌥F | replace | | ⌘⌥G | find next occurrence of current word | | ⌘⌃G | select all occurrences of current word for multiple editing | | ⌘⇧F | find in files |
h2. Splits/Tabs
| ⌘⌥1 | single column | | ⌘⌥2 | two columns | | ⌘⌥5 | grid (4 groups) | | ⌃[1,2,3,4] | focus group | | ⌃⇧[1,2,3,4] | move file to group | | ⌘[1,2,3...] | select tab |
h2. Bookmarks
| ⌘F2 | toggle bookmark | | F2 | next bookmark | | ⇧F2 | previous bookmark | | ⌘⇧F2 | clear bookmarks |
h2. Marks
| ⌘K space | set mark // ⌘K; for me | | ⌘KW | delete from cursor to mark | | ⌘KA | select from cursor to mark | | ⌘KG | clear mark |