Skip to content

Instantly share code, notes, and snippets.

@yashprit
Last active August 29, 2015 14:02
Show Gist options
  • Save yashprit/0161fb81a4074cb6d101 to your computer and use it in GitHub Desktop.
Save yashprit/0161fb81a4074cb6d101 to your computer and use it in GitHub Desktop.
Sublime Shortcut

Use Ctrl + P, its a GoTo Anything Popup:-

  1. Type, to search through files (open files, recently closed files, and files in open folders)

  2. @foo, to search through symbols in the current file

  3. :foo, to go to the given line number

  4. #foo, to do a fuzzy search in the current file for foo

These can be combined: foo@bar will search for the file that best matches foo, and go to the symbol in that file that best matches "bar". foo:100 would go to line 100 of the same file. You can use this to preview a location in another file, then hit escape to go back to where you where.

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