Skip to content

Instantly share code, notes, and snippets.

@Vheissu
Created September 4, 2014 23:08
Show Gist options
  • Save Vheissu/b9699c56a05451c19ea5 to your computer and use it in GitHub Desktop.
Save Vheissu/b9699c56a05451c19ea5 to your computer and use it in GitHub Desktop.
A compilation of useful shortcuts for Sublime Text

Keyboard shortcuts for Sublime Text Editor

I am using version 2, but these shortcuts will work in Sublime Text editor 3 as well.

Editing & Workflow


  • cmd + t: Go to a file
  • cmd + shift + p: Command popup (this is where you install packages, run other commands and interact with some plugins)
  • cmd + g: Go to a particular line
  • control + ` (tilde): Open up the Python command line
  • cmd + L: Select the current line
  • control + shift + k: Deletes the current line
  • control + shift + m: Select content within brackets (PHP brackets, if statements, function brackets)
  • cmd + /: Language specific single line comment
  • cmd + alt + /: Language specific block comment
  • control + alt + .: Close a HTML or XML tag

Find & Replace


  • cmd + f: Find within the currently opened file
  • cmd + alt + f: Find and replace within the currently opened file
  • cmd + alt + g: Find the next occcurence of the search term
  • cmd + control + g: Select all occurences of the current search term
  • cmd + shift + f: Find in multiple files (specify a directory or a currently open project)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment