Skip to main content

Exclude directories (like spec ) when searching in Atom

To exclude a directory in an atom search, you can add this to the location field of the project search:

!spec/*

Another method to permanently exclude multiple directories​

NOTE: THESE WILL STILL APPEAR IN TREE VIEW, BUT CANNOT BE SEARCHED, INCLUDED CMD-P (search by file name) https://stackoverflow.com/questions/38101462/atom-exclude-node-modules-folder-from-search Steps

  • Launch atom
  • From the menu: edit > preferences (atom > prefernces on Mac)
  • From the side menu, click the button "Open Config Folder"

Now a new atom IDE should open.

  1. Open the file "config.cson"

  2. Add ignoredNames: ["node_modules"] under core

Example of a config.cson -- add folders to the ignoredNames list...

"*":
core:
ignoredNames: [
".git"
"node_modules"
"spec"
"lib"
]
editor: {}
minimap:
plugins:
"highlight-selected": true
"highlight-selectedDecorationsZIndex": 0
welcome:
showOnStartup: false