Skip to content

Instantly share code, notes, and snippets.

@bobjackman
Forked from TuxToaster/OS X Sublime Shortcuts.md
Last active December 16, 2015 02:59
Show Gist options
  • Save bobjackman/5366585 to your computer and use it in GitHub Desktop.
Save bobjackman/5366585 to your computer and use it in GitHub Desktop.

Useful Shortcuts

Sublime Text 2 - (Mac OS X)

Modifier keys used

Symbol Key Name
Command
Control
Alt
Shift
Backspace
Enter

General

Description OS X Win
go to anything ⌘P ^P
go to project ⌘⌃P ⌃⌥P
go to methods ⌘R ^R
go to line ⌃G ⌃G
toggle side bar ⌘K,⌘B ^K,^B
command palette ⌘⇧P ^⇧P
python console ⌃ ` ⌃ `
new window (useful for new project) ⌘⇧N ^⇧N

Editing

Description OS X Win
select line (repeat select next lines) ⌘L ^L
select word (repeat select others occurrences in context for multiple editing) ⌘D ^D
select content into brackets ⌃⇧M ⌃⇧M
insert line before ⌘⇧↩ ^⇧↩
inter line after ⌘↩ ^↩
delete line ⌃⇧K ⌃⇧K
delete from cursor to end of line ⌘K,⌘K ^K,^K
delete from cursor to start of line ⌘K,⌘⌫ ^K,^⌫
duplicate line(s) ⌘⇧D ^⇧D
join lines ⌘J ^J
upper case ⌘K,⌘U ^K,^U
lower case ⌘K,⌘L ^K,^L
comment ⌘ / ^ /
block comment ⌘⌥ / ^⌥ /
redo or repeat ⌘Y ^Y
paste and indent ⌘⇧V ^⇧V
auto-complete (repeat to select next suggestion) ⌃ space ⌃ space
jump to matching brackets ⌃M ⌃M
soft undo (movement undo) ⌘U ^U
soft redo (movement redo) ⌘⇧U ^⇧U

XML/HTML

Description OS X Win
select content into tag ⌘⇧A ^⇧A
close tag ⌘⌥ . ⌥ .

Find/Replace

Description OS X Win
find ⌘F ^F
replace ⌘⌥F ^H
find next occurrence of current word ⌘⌥G F3
select all occurrences of current word for multiple editing ⌘⌃G ⌥ F3
find in files ⌘⇧F ^⇧F

Splits/Tabs

Description OS X Win
single column ⌘⌥1 ⌥⇧1
two columns ⌘⌥2 ⌥⇧2
grid (4 groups) ⌘⌥5 ⌥⇧5
focus group ⌃[1,2,3,4] ⌃[1,2,3,4]
move file to group ⌃⇧[1,2,3,4] ⌃⇧[1,2,3,4]
select tab ⌘[1,2,3...] ⌥[1,2,3...]

Bookmarks

Description OS X Win
toggle bookmark ⌘F2 ^F2
next bookmark F2 F2
previous bookmark ⇧F2 ⇧F2
clear bookmarks ⌘⇧F2 ^⇧F2

Marks

Description OS X Win
set mark ⌘K space ^K space
delete from cursor to mark ⌘K,⌘W ^K,^W
select from cursor to mark ⌘K,⌘A ^K,^A
clear mark ⌘K,⌘G ^K,^G
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment