Skip to content

Instantly share code, notes, and snippets.

Forked from TheShrike/gist:6111200
Last active March 30, 2024 04:14
Show Gist options
  • Save mrliptontea/4c793ebdf72ed145bcbf to your computer and use it in GitHub Desktop.
Save mrliptontea/4c793ebdf72ed145bcbf to your computer and use it in GitHub Desktop.
Sublime Text 3 - Useful Shortcuts (Windows)

Sublime Text 3 - Useful Shortcuts (Windows)


Shortcut Description
Ctrl+Shift+P command prompt
Ctrl+Alt+P switch project
Ctrl+P go to file
Ctrl+G go to line
Ctrl+R go to methods
Ctrl+Shift+R go to methods in project
Ctrl+KB toggle side bar
Ctrl+` toggle console
Ctrl+Shift+N new window


Shortcut Description
Ctrl+L select line (repeat select next lines)
Ctrl+D select word (repeat select others occurrences in context for multiple editing)
Ctrl+Alt+Up / Ctrl+Alt+Down select column for multiple editing
Ctrl+Shift+M select content into brackets
Ctrl+Shift+Enter insert line before
Ctrl+Enter inter line after
Ctrl+Shift+K delete line
Ctrl+KK delete from cursor to end of line
Ctrl+KBackspace 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 line
Ctrl+Shift+/ block comment
Ctrl+Y redo or repeat
Ctrl+C copy
Ctrl+V paste
Ctrl+Shift+V paste and ident
Ctrl+Space autocomplete (repeat to select next suggestion)
Ctrl+M jump to matching brackets
Ctrl+U soft undo (movement undo)
Ctrl+Shift+U soft redo (movement redo)

Code navigation

Shortcut Description
F12 go to definition
Alt+- jump back
Alt+Shift+- jump forward


Shortcut Description
Ctrl+Shift+A select content into tag
Alt+. close tag

Find / Replace

Shortcut Description
Ctrl+F find
Ctrl+I incremental find
Ctrl+H replace
F3 find next occurrence of searched word
Ctrl+F3 find next occurrence of current word
Alt+F3 select all occurrences of current word for multiple editing
Ctrl+Shift+F find in files


Shortcut Description
Ctrl+0 focus on sidebar
Esc focus back to edit area when focus on sidebar

Splits / Tabs

Shortcut Description
Alt+Shift+1 single column
Alt+Shift+2 two columns
Alt+Shift+5 grid (4 groups)
Ctrl+[1,2,3...] focus group
Ctrl+Shift+[1,2,3...] move file to group
Alt+[1,2,3...] select tab


Shortcut Description
Ctrl+F2 toggle bookmark
F2 next bookmark
Shift+F2 previous bookmark
Ctrl+Shift+F2 clear bookmarks


Shortcut Description
Ctrl+KSpace set mark
Ctrl+KW delete from cursor to mark
Ctrl+KA select from cursor to mark
Ctrl+KG clear mark


Go to PreferencesKey Bindings - Default to explore all default shortcuts and read instructions for packages you installed to find out about their custom key bindings.

Copy link

That helps a lot thanks

Copy link

Feedmo commented May 6, 2018

Good job!

Copy link


Copy link

why ctrl k b is not work in sublime 3

Copy link

AVN9 commented May 24, 2018

very useful.. Thanks

Copy link


Copy link

thank's for all done

Copy link

Halbmond commented Aug 5, 2018


Copy link

Thanks :)

Copy link

ouweiya commented Sep 20, 2018

I add one: ctrl+k+v to bring up the clipboard.


F9 sort


ctrl+t replace


Copy link

Thank you 👍

Copy link

Thank you
It's very useful

Copy link

How to ctrl+d in reverse, from down to up?

Copy link

ghost commented Mar 19, 2019

How to ctrl+d in reverse, from down to up?

When you select one (or a few) line and duplicate that, then you have 2 copies of the line that are next to each other.
You can choose to consider either copy as the "copied" version.

Copy link

Thank you, and @ouweiya c thank you too!

Copy link

neeyatl commented Jun 20, 2019

Thanks. Very helpful.
Thank you @ouweiya too.

Copy link

prolightHub commented Jul 1, 2019

I accidentally pressed SHIFT + ALT + 3 and then I needed to figure out how to fix it, so I came here.

Copy link

IS in sublime analog CTRL+ALT+L (like in intellijIDEA to format code )?

Copy link

Sublime is just a text editor, not an IDE, like IntelliJ products - so to put simply it doesn't come with code formatting out of the box. But you can install a package that can do that for a specific language. See formatting packages on Package Control.

Copy link

amirattribes commented Oct 12, 2019

How I indent my php code and html? In net beans editor i was do it.

Copy link

To delete a word backwards Ctrl + Backspace

Copy link

I moved back by pressing ctrl + z severally how do I go back to where I was

Copy link

guest73 commented Jul 8, 2020

Does anyone know "Go to previous edit location" shortcut?

Copy link

mrliptontea commented Jul 8, 2020

@guest73, you're looking for "jump back" in Code navigation

Alt+- (minus) on Linux/Windows, Ctrl+- on OSX

Copy link

guest73 commented Jul 9, 2020


@guest73, you're looking for "jump back" in Code navigation

Alt+- (minus) on Linux/Windows, Ctrl+- on OSX

Thanks but no. That's not what I want. It clearly says "EDIT location".
I found an answer anyways. It's Ctrl+, / Ctrl+.. It's more or less what I use in Netbeans' Ctrl+Q - "Go to last edit location".

Copy link

Helped me

Copy link

I <3 it, thank u so much

Copy link

psnwd commented Aug 28, 2020

thank you!

Copy link

Thank You!

Copy link

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment