-
-
Save dannycroft/6609447 to your computer and use it in GitHub Desktop.
// Add the following to your preferences file | |
"folder_exclude_patterns":[".git","node_modules"] |
👍
But this also removes it from the sidebar, correct? Any way to just remove it from the searching?
+1 @adam-beck
+1
@adam-beck Try the following: "binary_file_patterns": ["node_modules/*"]
+1 @adam-beck
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! 💯
Thank you!