Skip to content

Instantly share code, notes, and snippets.

@benatkin
Created July 20, 2011 04:26
Star You must be signed in to star a gist
Save benatkin/1094335 to your computer and use it in GitHub Desktop.
excluding node_modules from Sublime Text 2
// Place user-specific overrides in this file, to ensure they're preserved
// when upgrading
{
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "node_modules"]
}
@dikiaap
Copy link

dikiaap commented Apr 6, 2016

Thanks, more fast.

@blainegarrett
Copy link

Thank you.

@sagivo
Copy link

sagivo commented Apr 12, 2016

👍

@Avcajaraville
Copy link

Thank you for sharing !

What @artemsvirskyi suggest worked for me: excluding folder from search, but not from sidebar tree.

Thanks again !

@eliseumds
Copy link

eliseumds commented May 19, 2016

So

{
  "binary_file_patterns": ["node_modules/"]
}

(with the slash in the end) is the way to go? Works for me on ST3.

@baraamashaal
Copy link

Thank you for sharing !

@badalsurana
Copy link

Thank you

@robsonbittencourt
Copy link

Thank you.

@jeeeez
Copy link

jeeeez commented Aug 31, 2016

"binary_file_patterns": ["node_modules/"]
Works for me on ST3!

@maxime1992
Copy link

Thanks, awesome

@Committing
Copy link

Thanks

@YuryDG
Copy link

YuryDG commented Dec 12, 2016

Thanks for sharing !

@rafaelcamargo
Copy link

🎉
Thanks!

@victusfate
Copy link

@HideoKun
Copy link

@victusfate
Copy link

victusfate commented Apr 14, 2017

Update sometimes I want to search node_modules sometimes I don't.
Just update the Where path:

  *.js,-*/node_modules/*

@sofakeer
Copy link

sofakeer commented May 1, 2017

Thanks!

@rafaelcardoso
Copy link

Thank you for this!!

@therealcritiq
Copy link

@artemsvirskyi thanks!

@mrGibi
Copy link

mrGibi commented Jul 28, 2017

Thanks!

@rhondarobot
Copy link

Thanks!

@PierBover
Copy link

My CPU gives her regards!

@zerodois
Copy link

Thaaaanks!

@BenChirlinn
Copy link

@jeezlee fix worked best for me. Won't search but can still see in sidebar.

"binary_file_patterns": ["node_modules/"]

@mantuonweb
Copy link

Thanks! :)

@imsinu9
Copy link

imsinu9 commented Apr 12, 2018

Thanks that worked 👍

@agdiaz
Copy link

agdiaz commented May 28, 2018

Thanks!!!

@moffeemoffee
Copy link

Thank you!

@karacas
Copy link

karacas commented Jan 13, 2019

Nice!

@abhijitmamarde
Copy link

Great! still works!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment