简体   繁体   中英

How to go to a file in a solution when the file path doesnt match the solution path

I'm working on a massive solution, thousands of source files, hundreds of projects and a solution folder structure that doesn't match the folder structure on windows.

If for example I use the "Find All References" feature of visual studio and open up a source file from the results I cant find an easy way to go to this file in the solution explorer and see what project it belongs to.

I'm aware of the "Track Active Item in Solution Explorer" option in "Projects and Solutions-> General" but i hate this. It essentially ends up with all the folders in my solution expanded which is annoying. Is there a way to do a similar thing but "on demand".

You could use the Search Solution Explorer feature. (Shortcut - Ctrl + ;)

In the solution explorer exists a field where you could type the filename you are looking for. All files & functions having the same name are displayed in a hierarchial order. The results displayed would easily help you to ascertain the project the file belongs to, unless you have multiple projects with same filename.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM