Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore node_modules from file search in Sublime 3

Tags:

sublimetext3

I want to ignore anything in node_modules folder when I'm searching for a file name. I tried:

In preferences > package control > package settings > user - settings I included:

"folder_exclude_patterns": ["*node_modules*"],
"file_exclude_patterns": ["*node_modules*"],

Yet still when I do cmd + p and search for a file Sublime searches in node_modules...

like image 822
Mark Avatar asked Nov 21 '17 09:11

Mark


1 Answers

Sublime 3 changes the syntax. You need to remove the wildcard stars.

Go to Preferences > Settings and update the User settings like this:

{
    "folder_exclude_patterns": ["node_modules"]
}
like image 135
rfreytag Avatar answered Nov 01 '22 15:11

rfreytag