Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

blainegarrett commented Apr 7, 2016

Thank you.

@sagivo
Copy link

sagivo commented Apr 12, 2016

👍

@Avcajaraville
Copy link

Avcajaraville commented Apr 25, 2016

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

baraamashaal commented Jun 3, 2016

Thank you for sharing !

@badalsurana
Copy link

badalsurana commented Jul 8, 2016

Thank you

@robsonbittencourt
Copy link

robsonbittencourt commented Aug 21, 2016

Thank you.

@jeeeez
Copy link

jeeeez commented Aug 31, 2016

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

@maxime1992
Copy link

maxime1992 commented Oct 16, 2016

Thanks, awesome

@Committing
Copy link

Committing commented Nov 4, 2016

Thanks

@YuryDG
Copy link

YuryDG commented Dec 12, 2016

Thanks for sharing !

@rafaelcamargo
Copy link

rafaelcamargo commented Jan 19, 2017

🎉
Thanks!

@victusfate
Copy link

victusfate commented Jan 30, 2017

@HideoKun
Copy link

HideoKun commented Mar 25, 2017

@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

rafaelcardoso commented Jul 13, 2017

Thank you for this!!

@therealcritiq
Copy link

therealcritiq commented Jul 19, 2017

@artemsvirskyi thanks!

@mrGibi
Copy link

mrGibi commented Jul 28, 2017

Thanks!

@rhondarobot
Copy link

rhondarobot commented Nov 13, 2017

Thanks!

@PierBover
Copy link

PierBover commented Jan 29, 2018

My CPU gives her regards!

@zerodois
Copy link

zerodois commented Feb 14, 2018

Thaaaanks!

@BenChirlin
Copy link

BenChirlin commented Mar 24, 2018

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

"binary_file_patterns": ["node_modules/"]

@mantuonweb
Copy link

mantuonweb commented Apr 3, 2018

Thanks! :)

@imsinu9
Copy link

imsinu9 commented Apr 12, 2018

Thanks that worked 👍

@agdiaz
Copy link

agdiaz commented May 28, 2018

Thanks!!!

@moffeemoffee
Copy link

moffeemoffee commented Sep 5, 2018

Thank you!

@karacas
Copy link

karacas commented Jan 13, 2019

Nice!

@abhijitmamarde
Copy link

abhijitmamarde commented Sep 13, 2019

Great! still works!!!

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