24

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...

Mark
  • 4,428
  • 14
  • 60
  • 116
  • 1
    Possible duplicate of [How can I exclude a folder from indexing in Sublime Text, while still showing it in the sidebar?](https://stackoverflow.com/questions/30954728/how-can-i-exclude-a-folder-from-indexing-in-sublime-text-while-still-showing-it) – Robin Whittleton Dec 14 '17 at 14:35

1 Answers1

35

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"]
}
rfreytag
  • 1,161
  • 10
  • 16