Visual Studio - File Search> not any node_modules folders

So, in Visual Studios, you can โ€œFind in Filesโ€ a line - I find it very useful for finding a file in which certain markup or JS can be found, I use VS for my main code editor for development on the Internet.

The problem is that most of my projects use node.js and node grunt / gulp building tools, etc., so I have a node_modules folder somewhere in my project, which makes FIND forever since there are thousands of files!

How can I search in files and folders for a string, but not in a node_modules directory.

In SublimeText2, you can delete a folder from a project without deleting it, this will stop the search located there ...

A RegExp will be for a string not filePath :(

+4
source share
1 answer

Ok, so I tried this and it seems to work.

You can hide the node_modules folder (if they have a common root) by setting the "Hidden" attribute in the folder. As you say, it satisfies your needs according to the question.

+12
source

Source: https://habr.com/ru/post/1544919/


All Articles