Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
  • super+shift+p: command prompt
  • ctrl+g: go to line
  • ctrl+`: Python console

Editing


  • super+l: select line (repeat select next lines)
  • super+d: select word (repeat select others occurrences in context for multiple editing)
  • ctrl+shift+m: select content into brackets
  • super+shift+enter: insert line before
  • super+enter: inter line after
  • ctrl+shift+k: delete line
  • super+k-k: delete from cursor to end of line
  • super+k-backspace: delete from cursor to start of line
  • super+shift+d: duplicate line(s)
  • super+j: join lines
  • super+k-u: upper case
  • super+k-l: lower case
  • super+/: comment
  • super+alt+/: block comment
  • super+y: redo or repeat
  • super+shift+z: past and ident
  • ctrl+space: autocomplete (repeat to select next suggestion)
  • ctrl+m: jump to matching brackets

XML/HTML


  • super+shift+a: select content into tag
  • super+alt+.: close tag

Find/Replace


  • super+f: find
  • super+alt+f: replace
  • super+alt+g: find next occurrence of current word
  • super+ctrl+g: select all occurrences of current word for multiple editing
  • super+shift+f: find in files

Splits/Tabs


  • super+alt+1: Single column
  • super+alt+2: Two columns
  • super+alt+5: Grid (4 groups)
  • ctrl+[1,2,3,4]: Focus group
  • ctrl+shift[1,2,3,4]: Move file to group
  • super+[1,2,3...] Select tab

Bookmarks


  • super+f2: Toggle bookmark
  • f2: next bookmark
  • shift+f2: previous bookmark
  • super+shift+f2: clear bookmarks

Marks


  • super+k-space: set mark // super+k-; for me
  • super+k-w: delete from cursor to mark
  • super+k-a: select from cursor to mark
  • super+k-g: clear mark
@ld

This comment has been minimized.

Copy link

ld commented Jan 16, 2013

Nice.

@vitalis

This comment has been minimized.

Copy link

vitalis commented Feb 22, 2013

TNX!

@nelsonJM

This comment has been minimized.

Copy link

nelsonJM commented Mar 7, 2013

I would like to know a shortcut for switching from the Search Panel to the line containing the result when performing a 'Find'. How would you handle this? Thank you for this resource.

@jandosul

This comment has been minimized.

Copy link

jandosul commented Apr 4, 2013

Thanks

@pschneider

This comment has been minimized.

Copy link

pschneider commented Apr 12, 2013

Ah the past and indent is nice! But it's super+shift+v on the mac here. Isn't copy&paste always super+c and paste super+v or is this keyboard layout specific?

@misalabs

This comment has been minimized.

Copy link

misalabs commented Jun 11, 2013

Very nice!

@aphantee

This comment has been minimized.

Copy link

aphantee commented Jun 17, 2013

yea not bad bro

@winfried-van-loon

This comment has been minimized.

Copy link

winfried-van-loon commented Jun 19, 2013

Very helpful, thank you so much! (Text to lower- and uppercase is such a sweet feature!)

@zakdances

This comment has been minimized.

Copy link

zakdances commented Aug 29, 2013

Can you remake this for ST3?

@aginanjar

This comment has been minimized.

Copy link

aginanjar commented Nov 14, 2013

Thanks for share (y)

@yorkie

This comment has been minimized.

Copy link

yorkie commented Nov 20, 2013

Thanks!

@tucq88

This comment has been minimized.

Copy link

tucq88 commented Jan 16, 2014

Make a version of Sublime Text 3 please. Or only changes, it may be useful. Thank you.

@stoivo

This comment has been minimized.

Copy link

stoivo commented Feb 1, 2014

Thanks!!!!!!!

@arturdent

This comment has been minimized.

Copy link

arturdent commented Feb 8, 2014

👍

@soufianeEL

This comment has been minimized.

Copy link

soufianeEL commented Mar 21, 2014

(y) good job

@MBehtemam

This comment has been minimized.

Copy link

MBehtemam commented Apr 7, 2014

thanks

@davidchase

This comment has been minimized.

Copy link

davidchase commented May 7, 2014

Good stuff 👍

@jongud

This comment has been minimized.

Copy link

jongud commented May 27, 2014

Hi, I found this list very useful. I cloned the gist and prettyfied the layout. If you want to pull it, it is here https://gist.github.com/jongud/6ed854a5934d8cde81f7. Unfortunately, I don't think github has pull requests for gists yet.

@dbasilioesp

This comment has been minimized.

Copy link

dbasilioesp commented Nov 26, 2014

Doesn't has a better way to delete a line ?

@dogmatic69

This comment has been minimized.

Copy link

dogmatic69 commented Aug 10, 2015

Delete lines the same as nano does:

{ "keys": ["ctrl+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.