Search
Monday, November 12, 2018 ..:: Home ::.. Register  Login

Peter Henry on Facebook  Peter Henry on LinkedIn  Peter Henry on Twitter

   Calendar  
     
  
   Search  
     
  
   Blogroll  
     
  
   Disclosure  
All blog entries are the opinions of the author and do not necessarily reflect the opinions of their employer. All the code presented is for explanation and demonstration purposes only. Any damages incurred to your site and/or data are not the responsibility of the author. Every effort is taken to ensure the code properly compiles, however sometimes there are some hiccups and you might be required to do your own debugging.
     
  
   TechTidBits (Blog)  

Visual Studios’ AWESOME little feature UNHIDDEN!

Mar 4

Written by:
Monday, March 04, 2013 10:06 PM  RssIcon

clip_image001Visual Studio has a GREAT feature called Sync with Active Document, read more!

CEO Summary

Lost in your focus with your code?  Need to find your place in your Solution Explorer?  Hit the CTRL+[, S chord and check out your Solution Explorer now!

Dev Summary

When I first started using Visual Studio, the solution I was using was HUGE!!!!  Aside from the obvious jokes about “just how big was it?” DOH!  Let’s just keep going with the meat of the blog!  DOH!  OK, ok ok.

I found some quick tricks, and maybe you found them too!  But with larger solutions, you might turn off Visual Studio’s ability to keep the Solution Explorer in sync with your code cause the flipping around in the Solution Explorer can be quite distracting.

image

BUT, there are times when you DO want to find your file in the context of your solution.  So how do you turn this on?  There is a shortcut you can add.

image

SO this worked LIKE A CHARM in VS2010.  You hit the shortcut and BOOM you’re scoped into the Solution Explorer to the exact file you are looking at in the code window, down the right number of folders too!  Beautiful!

Fast Forward to VS 2012, and we’re not in Kansas anymore Toto!  DOH!  Try this trick, and you’ll get an error.

image

Following a local MVP’s advice, I did send this feedback to MS.  BUT, what do I do while waiting for this to be fixed?  Well, my coworker (Mr. Congeniality, yes,the name is obfuscated, redacted on request) pointed me to a FANTASTIC new VS2012 feature!  Instead use the Sync with Active Document shortcut CTRL+[, S!  You get the same benefit but without the error!!!!!!!!!!!  (and without the toggle!!!!!!)

clip_image001

Now that you know how to get your focus back, it’s time to grab a coffee and get coding!

Tags:
Categories:
Location: Blogs Parent Separator TechTidBits

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Add Comment   Cancel 
     
  
Copyright 1999-2012 by PCHenry.com   Terms Of Use  Privacy Statement