How to exclude node_modules folder from Atom searches "Find in project" after you have put node_modules inside your .gitignore file? Does atom require that the project actually has a git repository, or should the .gitignore be enough for Atom to exclude the folder?
My .gitignore looks like this:
.DS_STORE *.log node_modules dist coverage
You must exclude node_modules , even though the folder is outside the src folder. That's because those packages are imported (using import ) inside the files (a.k.a modules) that are placed inside the included src folder.
Steps
Now a new atom IDE should open.
ignoredNames: ["node_modules"]
under core
Example of a config.cson
"*": core: ignoredNames: [ ".git" "node_modules" ] editor: {} minimap: plugins: "highlight-selected": true "highlight-selectedDecorationsZIndex": 0 welcome: showOnStartup: false
Hope this helps
In the "File/directory pattern" field of the search use an exclamation mark followed by the name of the directory you want to ignore:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With