Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude specific files from visual studio search

Tags:

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.

like image 403
christiansr85 Avatar asked Jun 05 '14 08:06

christiansr85


People also ask

How do you exclude files in VS code search?

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.

How do I search for a specific file in Visual Studio?

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.

How do I hide excluded files in Visual Studio?

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!

How do I ignore a folder in Visual Studio?

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.


1 Answers

you have following options as of now for your problem

  • All Open Files
  • Exclude file and search only files in solution/project

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

like image 144
Raghavendra Avatar answered Oct 03 '22 09:10

Raghavendra