Last active
February 27, 2019 18:25
-
-
Save dannycroft/6609447 to your computer and use it in GitHub Desktop.
Exclude node_modules out of Sublime Text 2 searches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add the following to your preferences file | |
"folder_exclude_patterns":[".git","node_modules"] |
To all '+1'-ing @adam-beck, this is the solution you are looking for:
"binary_file_patterns": [".svn/", ".git/", ".hg/", "CVS/", "node_modules/", "bower_components/"]
Note the '/' at the end of the paths.
This effectively excludes those folders from searches, but keeps them in the sidebar. Works on ST3.
Credit goes to: https://twitter.com/klaemo/status/294170840063422464
This excludes folders from indexing (Ctrl+P), not from searching (Find in Files, Ctrl+Shift+F). As for now there seems to be no way to exclude a folder both from indexing and searching but preserve it in sidebar.
@nfantone Work for me,Thx~!
👍 💯
nice,thx a lot
Alternatively, you can use:
Find > Find in files... (CMD+SHFT+F)
Where: -*/node_modules/*
@nfantone 👍 thank you!
With node_modules/*
this also excludes from cmd+p
in Version 3.1.1, Build 3176. Thank you! 💯
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
+1 @adam-beck