I am using Find and Replace in Visual Studio 2010. Currently, I can filter the search to only look in:
- the current document
- the selection
- all open documents
- the current project
- the entire solution
- the current block
These are some great filters, but I would like to search only in header files. Is there a way to search only in header files?
I am currently using grepWin to search and accomplish this externally to Visual Studio. Is there a way to search in Visual Studio. Plugins are acceptable answers.
Rather than use filters, use file types instead (maybe combined with filters). Open the
Find Optionssection in the “Find In Files” perspective of the Find and Replace dialog.For example, you can search all *.h files within the solution. Or all *.h files found under folders
c:\my_projects;c:\work_projects(the filter drop-down allows multiple folders).