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!

  • Anonymous

    nice! didn’t know that

  • Anonymous

    Yeah, a very handy thing to know

  • Anonymous

    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)

  • ronaldwidha

    @Xian worthy to note that if you’re on a slow machine, … you might want to get a better machine. LOL

  • Anonymous

    Thanks.. I stumbled on your post while scratching my head for last half an hour how to turn this feature on!

  • Anonymous

    Thanks a lot. I really appreciate it. Your tip helped me to get rid of one of the most annoying things in VS.

  • Anonymous

    I think alot of time are spent by devs looking for files. This tip and Resharper will increase productivity significantly for any .Net devs

  • Anonymous

    thanks a lot..

  • Gman

    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!

  • PSU Kardi

    Thank you so much!

  • Rajmca05

    Thanks a lot!!!
    It helped me a lot…

  • James

    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)

  • Ssrmit62

    thanks a lot.. It saved my time a lot.

  • Ray661

    Thanks this will save me a lot time in future!!!

  • Sam

    Thanks dude!

  • PratikChandra

    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!!!

  • abc

    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. :-)

  • PratikChandra
  • Bruno Cassol


  • Courtney Mills

    Thanks, I was looking for this functionality.

  • lorinc

    Thanks for the  info, it's really useful!

  • Truls Unstad

    Thank you very much, just what I was looking for. This was driving me mad.

  • Rolando

    Fantastic! thanks for this info, Ive been looking for this for months

  • skyfire163

    Thank you!

  • Guest

    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.

  • Srinivas

    Thanks for the tip, this is really helpful to many people in our team.

  • Amit Stefen

    Excellent… I installed the fresh copy of VS2010 and it never included this setting by default. Thanks Ronald

  • Horsin'Around

    Thanks!  I was looking for that!

  • Donald Herman

    thanks OP!!!

  • steve


  • Maxim

    Thank you!!

  • Phil Gardocki

    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.

  • ronaldwidha

    glad that you find it useful. For me, it's this post to set up beyond compare with VS… – 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.

  • Ioan Antoniu


  • charlie the cat


  • Ankit

    Great tip. Thank you

  • Ant

    Thank you soooooo much! You’ve just saved my sanity!

  • Florian

    Resharper: Shift + Alt + L

  • B2#5!#%@$1jfB2$1


  • Sara

    I love you because of this guidance!!!!!!!!!!