Exclude Folders from Sublime Text Search

Let’s close this once & for all.

Problem 1: Exclude files from Indexing

When you press ctrl+p or command+p that shows up a list of all files. Sublime indexes all files present in your working directory. To prevent those CPU spikes when looking up for files, you’d require to exclude the library files e.g. your node_modules and bower_packages using the User Defined settings‘s property called binary_file_patterns.

Problem 2: Exclude files from Search

You can search entire project directory by using command(win-ctrl) + shift + f, and pass in the expression you want to search.

To filter out the folders you do not want to look in, you may use the following syntax:


as found on: sublime-text-forum, stackoverflow q&a, exact answer with screenshot,


One thought on “Exclude Folders from Sublime Text Search

  1. Pingback: Sublime Text Plugins and Snippets worth exploring – For the modern day | STATUSOK200

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s