I'm working with Visual Studio 2013. With WebEssentials, I have created some bundles files to minimize my javascript files, and every time I do a search, my vs freezes because it searchs also in the bundles files. So if I have, e.g., the 'externalBundle.js'
and the 'myappBundle.js'
, I want to exclude them.
I've already seen the Excluding specific files from Visual Studio search and the How to exclude designer.cs from Visual Studio file search posts, but they don't solve my issue. I just want to exclude two files from the search by a pattern.
UPDATE: I've started a new project and I'm working with Visual Studio 2015. The issue is still present because it seems the search widgets are the same as in VS2013.
Persistent Exclusions From menu choose File ➡️ Preferences ➡️ Settings ➡️ User/Workspace Settings and filter default settings to search . You can modify the search. exclude setting (copy from default setting to your user or workspace settings). That will apply only to searches.
You can press ctrl+t to get a editor Get to all , in which you can type the file name to navigate to that specific file. Save this answer. Show activity on this post. CTRL + P this searches for the file name your direct answer.
However, if you create New Project the hide/show button will appear!! So, it seems that you have to avoid creating New Web Site... but create New Project instead to have the button on Solution explorer. Try moving your work to a New Project rather than your current solution Good Luck!
You can use Visual Studio to exclude a file from a solution by context-clicking the file in Solution Explorer and selecting Exclude from Project in the context menu.
you have following options as of now for your problem
and with above two option you can always combine and apply following rule - Search in files ending with specific pattern or extensions
as per above discussion it looks like you are missing exclude feature in visual studio so for now you can use some tools available for free some links you can find here
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