Skip to main content

Sublime 2 Keyboard Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+Ccopy current line (if no selection)
Ctrl+Xcut current line (if no selection)
Ctrl+⇧+Kdelete line
Ctrl+↩insert line after
Ctrl+⇧+↩insert line before
Ctrl+⇧+↑move line (or selection) up
Ctrl+Lselect line (repeat to select next lines)
Ctrl+Dselect word (repeat select others occurrences in context for multiple editing)
Ctrl+Mjump to closing bracket for current code, repeat to jump to opening bracket
Ctrl+⇧+Mselect all contents of the current brackets (curly brackets, square brackets, parentheses)
Ctrl+KKdelete from cursor to end of line
Ctrl+K+⌫delete from cursor to start of line
Ctrl+]indent current line(s)
Ctrl+[un-indent current line(s)
Ctrl+⇧+Dduplicate line(s)
Ctrl+Jjoin line below to the end of the current line
Ctrl+ /comment/un-comment current line
Ctrl+⇧+/block comment current selection
Ctrl+Yredo, or repeat last keyboard shortcut command
Ctrl+⇧+Vpaste and indent correctly
Ctrl+Spaceselect next auto-complete suggestion
Ctrl+Usoft undo (somehow undoes your movements; it jumps to your last change before undoing it when you repeat this command)

Navigation/Goto Anywhere

Ctrl+Pquick-open files by name in your project (doesn’t seem to need an actual project set up, it just searches in the directories around the currently-opened file
Ctrl+Rgoto 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+Ggoto line in current file. Same as Ctrl+P, then type :

General

Ctrl+⇧+Pcommand prompt
Ctrl+KBtoggle side bar

Find/Replace

Ctrl+Ffind
Ctrl+Hreplace
Ctrl+⇧+Ffind in files

Tabs

Ctrl+⇧+topen last closed tab (just like in your browser)
Ctrl+PgDncycle down through open tabs, cycle up with Ctrl+PgUp
Ctrl+⇆cycle through last tabs (repeat to go back further in history)

Split window

Alt+⇧+2split into two columns
Alt+⇧+1revert to single column
Alt+⇧+5grid (4 groups)
Ctrl+[1,2,3,4]jump to “group” (pane)
Ctrl+⇧+[1,2,3,4]move file to specified group

Bookmarks

Ctrl+F2toggle bookmark
F2next bookmark
⇧+F2previous bookmark
Ctrl+⇧+F2clear bookmarks

Text manipulation

Ctrl+KUupper case
Ctrl+KLlower case

Comments

ananth said…
Sublime has changed a lot. But some keyword combination brought me here. kudos.

Featured

How to Get Color Prompts on your MacOS Terminal

Have you ever wondered that you would want colors to pop up on your terminal? I did and it made my life easier. It helped me to understand very quickly about the following:
Which folder im currently inWhich git branch my local workspace is inWhat terminal commands I have issued All you have to do is to use the following script in your ~/.bash_profile
Gist link: https://gist.github.com/gten/a6d261d32cea97e9a52b82f48989c07f


You will receive wonderful short stories written by him and inspirational articles once every month.