Visual Studio: Show active file in solution explorer
One of the most annoying thing about Visual Studio default settings is the fact that the Solution Explorer doesn't track what files you are currently looking at. Alot of developers thought this was the only way, and had to bear the pain of flicking through the Solution Explorer while scratching their head to figure out 'where the hell I put this file?'.
Some have found a work around by using Visual Studio plugin like VS File Finder and Resharper (Ctrl + Shift + T / Resharper_GoToFile). While others found right clicking on the tab - open containing folder to be helpful enough.
There is actually a setting in Visual Studio that does this automatically.
Tools - Options - Projects and Solutions - Track Active Item in Solution Explorer
Just tick the box..and you're all set!
nice! didn't know that
Yeah, a very handy thing to know
I thought that was the default mate?
Either way it's worhty to note that if you're working on a slow pc you gain some performance by turning it off (not that I would)
@Xian worthy to note that if you're on a slow machine, ... you might want to get a better machine. LOL
Thanks.. I stumbled on your post while scratching my head for last half an hour how to turn this feature on!
Thanks a lot. I really appreciate it. Your tip helped me to get rid of one of the most annoying things in VS.
I think alot of time are spent by devs looking for files. This tip and Resharper will increase productivity significantly for any .Net devs
thanks a lot..
yeah, it seemed to be default for mine but somehow switched itself off randomly, so thanks for the post, now I have switched it back on!
Thank you so much!
Thanks a lot!!! It helped me a lot...
In the event you want to only track the current file through a keyboard shortcut - the activity is "View.TrackActivityinSolutionExplorer" (assign keys here -> Tools - Options - Environment - Keyboard)
thanks a lot.. It saved my time a lot.
Thanks this will save me a lot time in future!!!
Thanks dude!
This feature is actually annoying for me most of the time...so I don't want to enable/disable the global vs settings, but just like in resharper(I guess), I'd like to track/locate JUST the current file in the solution-explorer, through a shortcut. Is there a way to do that or any alternate tweak or something??? It would really help, and ofcourse save a lot of time too!!!
make sure this feature is disabled initially and then use the shortcut twice every-time you use it. You can assign some single-press handy shortcut like "ctrl+shift+D". It will track the current file and then immediately disable tracking, so the solution explorer will not keep jumping to the active file when you navigate through your other opened files. Hope it helps. :-)
https://dvanderboom.wordpress.com/2008/03/21/visual-studio-macro-track-item-in-solution-explorer-on-demand/#comment-459
Thnx!
Thanks, I was looking for this functionality.
Thanks for the info, it's really useful!
Thank you very much, just what I was looking for. This was driving me mad.
Fantastic! thanks for this info, Ive been looking for this for months
Thank you!
Holy cow. I've been searching through solution explorer for months (usually use the >of shortcut to open files, but that's not enough). You just saved me so much time.
Thanks for the tip, this is really helpful to many people in our team.
Excellent... I installed the fresh copy of VS2010 and it never included this setting by default. Thanks Ronald
Thanks! I was looking for that!
thanks OP!!!
Thanks
Thank you!!
Thanks again for this ever so useful post. For reasons I can't explain about every 6 months or so, this setting goes unchecked for me and I have to find it again. Different machines, companies, versions of VS. They all lose it once in a while.
glad that you find it useful. For me, it's this post to set up beyond compare with VS https://www.ronaldwidha.net/2008/11/26/the-best-comparison-tool-and-vs2008-integration/ - VS2008, VS2010, VS2012 across Vista, 7, 8 DP, CP, RP, RTM ... I have to do it again again and again. It's nice to have a cheat sheat like these.
thanks!
puurrrrrrfect!
Great tip. Thank you
Thank you soooooo much! You've just saved my sanity!
Resharper: Shift + Alt + L
Awesome.
I love you because of this guidance!!!!!!!!!!