DEV Community

loading...

Exclude folders from Sublime Text search

heyogrady profile image Patrick O'Grady ・1 min read

Exclude once

To exclude a folder from a one-time search, add this filter:

-*/folder_name/*
Enter fullscreen mode Exit fullscreen mode

Exclude always

To exclude a folder from all searches, add this setting to Packages/User/Preferences.sublime-settings:

// Sublime Text 2
"binary_file_patterns": ["folder_name/"]

// Sublime Text 3
"folder_exclude_patterns": ["folder_name"]
Enter fullscreen mode Exit fullscreen mode

Exclude in project

If you only want to exclude a folder for a particular project:

  • Select Project-->Edit Project
  • Add "folder_exclude_patterns": ["folder_name"]

Discussion (0)

pic
Editor guide