Skip to content

Instantly share code, notes, and snippets.

@gschema
Last active August 29, 2015 14:15
Show Gist options
  • Save gschema/fc8e33056c8d30c06b1c to your computer and use it in GitHub Desktop.
Save gschema/fc8e33056c8d30c06b1c to your computer and use it in GitHub Desktop.
Sublime Text notes and shortcuts

Sublime Text notes and shortcuts

The Command Palette

Access/search commands and apply with enter on selection of the command.

Shortcuts

cmd + shift + P - open then type ssx to narrow to set syntax options

esc - close

Goto Anything Palette

Navigates to any file, line or symbol within current projects and/or open files.

Goto Anyting search is performed per letter not string as a whole (e.g. #jq - will match jQuery and ajax_request).

Shortcuts

cmd + P - opens Goto Anything palette:

  • enter text to start searching for file, folder or project. First listed are recently used files.
  • :string or ctrl + G - if search starts with : Goto Anything becomes go to line (e.g. :37 goes to line 37)
  • #string - if search starts with # Goto Anything becomes search within current document
  • @string or cmd + R - if search starts with @ Goto Anything becomes open projects wide search for function and class names, block of text.

esc - closes the palette

Combining/Chaining Commands

filename@methodOrClassOr... - searches for method or class withing filename which is also matched per char basis (e.g. jq@jx would match any ajax function in jquery file)

Code Folding

option (alt) + cmd + [ - folds current selection

option (alt) + cmd + ] - expands current selection (folded part of the selection)

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