Pages

Tuesday, January 14, 2020

Excluding files and folders from Sublime Text projects

I'm not sure why I didn't look it up earlier, but here's how to exclude files from your Sublime Text 3 projects -- where the real benefit to me is that libraries won't pollute my search results.

Open up your Settings (Preferences menu, then Settings). In the pane that opens, your user settings will appear as a json file on the right.

If you don't already have these properties, add them with your desired values...

"folder_exclude_patterns": ["angular"],
"file_exclude_patterns": ["angular.js", "*.min.js"]

Thanks to here for getting me started with folder_exclude_patterns, and to Sublime for have settings where property names are as easy to guess as they were in this case.