Tag Archives: Sublime Text

Ignoring files and folders in Sublime Text

I love the file search (ctrl+shift+f) and quick navigate (ctrl+p) in Sublime Text. What can be annoying however is when these present you with library code in your project, files related to source control, binary files or minified files.

Since I keep forgetting how to clean that up, here’s a note to self (and others) on how to clean that up. Easy peasy.

  1. Save as project (if you haven’t already)
  2. Edit project file
  3. Add file_exclude_patterns and/or folder_exclude_patterns to the folders section.

Below is an example from one of my current projects which excludes the git repo folder, a cache folder, minified files and some binary files.

            "path": "/D/dev/www/sdaweb-ssl"

Helpful Sublime Text packages

Keep forgetting the names of packages I like to install when setting up Sublime Text 2. Or that I should install them to begin with. So here’s a note to self on packages I should install whenever I reinstall this fantastic editor. And a note to you if you use the editor and didn’t know such helpful packages existed.

  • Package Control
    The package that adds a package manager to the editor. After that is installed, simply press Ctrl+Shift+p, bring up Install Package by typing “ip”, and hit enter. You can then search for packages and install them super easy.

  • File Rename
    Keyboard only renaming of files from within ST.

  • Highlight
    For copying syntax highlighted code either as HTML or as RTF. Nice for pasting code into emails, documents, etc.

  • Indent XML
    For… indenting XML. Been very helpful for cleaning up messy SOAP requests from logs, etc.

  • LESS
    For syntax highlighting of LESS files

  • Markdown Preview
    For quick preview of markdown files in the browser

  • Text Pastry
    For fun pasting madness. You can for example paste in sequences of numbers. E.g. Ctrl+Alt+n and then i20, will paste integers starting at 20 in all your cursors.