Skip to content

Instantly share code, notes, and snippets.

@mariapacana
Last active December 24, 2015 13:59
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariapacana/6809543 to your computer and use it in GitHub Desktop.
Save mariapacana/6809543 to your computer and use it in GitHub Desktop.
Sublime shortcuts

Linux

  • Control + Shift + P + rein -- reindent lines
  • Control + D -- select word
  • Control + U -- unselect word
  • Control + O -- open file
  • Control + W -- close tab
  • Control + KK -- delete to the end of line
  • Control + X -- cut entire line (or you can use this to delete)
  • Shift + Alt + (any number) -- split the window into that many panes (1 works, too)
  • Control + Shift + [Group #] -- move file to group
  • Control + [Group #] -- switch to [Group #]
  • Control + Tab -- cycle between tabs
  • Control + (tab number) -- switch to (tab number)
  • Control + Shift + F -- find in files
  • Control + / -- comment all highlighted lines

Mac OS

  • Command + Shift + P + rein -- reindent lines
  • Command + D -- select word
  • ⌃ + U -- unselect word
  • Command + P -- open file
  • Command + W -- close tab
  • Command + KK -- delete to the end of line
  • Command + X -- cut entire line (or you can use this to delete)
  • Command + Option + (any number) -- split the window into that many panes (1 works, too)
  • Control? + Shift + [Group #] -- move file to group
  • Control? + [Group #] -- switch to [Group #]
  • Command + Alt + Left/Right -- cycle between tabs
  • Command + (tab number) -- switch to (tab number)
  • Command + K + B -- toggle the side bar hidden / showed
  • Command + Shift + F -- find in files
  • Command + / -- comment all highlighted lines

http://docs.sublimetext.info/en/latest/reference/keyboard_shortcuts_osx.html

@akaptur
Copy link

akaptur commented Oct 3, 2013

Mac:
ctrl-K also works to delete to the end of the line
Jump around:
ctrl-a to the beginning of the line
ctrl-e to jump to the end
ctrl-f to advance a character

Cmd-shift-[ or cmd-shift-] to shift one tab forward or back

@monicatoth
Copy link

Thank you so much! Here are a couple more we discussed in the talk:

Control + Command + G -- selects all instances of a (selected) string
Command + Shift + L -- gives you cursors in all active selections
Command + R -- opens a drop-down window for functions (with search capability)

@akaptur
Copy link

akaptur commented Oct 3, 2013

Cmd-ENTER to add a line below the cursor (thanks, @FiloSottile)

@akaptur
Copy link

akaptur commented Oct 3, 2013

Cmd-shift-p to open the "jump to anything" pane

@akaptur
Copy link

akaptur commented Oct 3, 2013

Cmd-/ to comment/uncomment a code block

@akaptur
Copy link

akaptur commented Oct 3, 2013

Shift-cmd-w for a pair of html tags
or in an html or markdown document, try html then tab or a then tab, etc.

@phsteve
Copy link

phsteve commented Oct 3, 2013

Also Project->Save Project As... will save the current state of Sublime (tabs open, cursor position, find history etc)

@archie
Copy link

archie commented Oct 3, 2013

Different ways to jump to locations after Cmd+p:

:row_number
#symbol
@definition

And can be combined with files like, jump to append in file List: Lis@app

@AlisamfP
Copy link

AlisamfP commented Oct 3, 2013

Control+Shift+Backspace deletes up to the beginning of a line in Linux.

@AlisamfP
Copy link

AlisamfP commented Oct 3, 2013

Also, Control + Shift + Up/Down moves an entire line up/down.

@feinomenon
Copy link

Ctrl+D can be used repeatedly to keep selecting the next instance of the word (in addition to the previously-selected ones). Also, Alt+F3 in Linux/Windows selects all instances of a word.

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