Search
Thursday, October 30, 2014 ..:: Home ::.. Register  Login
   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)  

VS TnT #10: fastest way to get to code or UI designer

Nov 24

Written by:
Wednesday, November 24, 2010 8:36 PM  RssIcon

Visual Studio Tips'n'TricksEver want to JUST open the code?  Or just flip over to the designer right then and there?  Read on for the next TnT!

Visual Studio Tips'n'TricksTip'n'Trick: Get to your code, then your UI designer, then to your code then do your designer in an instant!

Shortcut: F7 or SHIFT+F7

Da "Peter" version (aka, ya, da verbose one)

When you want to just fix that bug in code, or make a change in a form, do you goto Solution Explorer and double click the file, then realize it opened it up in the wrong view (Designer let's say), then you right mouse click the exact same file then pick View Code?  Ya, I used to that too!  DOH!  There is a faster and more direct way!

Solution Explorer and open in Code

Did you notice the F7 and the Shift+F7 on the right?  Those are the keyboard shortcuts you can use to open the file without having to right mouse click the file.  Ya, that's right, next time you use the express route to goto your Solution Explorer, you can then hit either F7 or SHIFT+F7, depending on your task.

Viewing code with F7 Viewing designer with SHIFT+F7

I personally LOVE these two little shortcuts and use them ALL THE TIME!  I use these shortcuts in conjunction with the Close All and Close All But Me shortcuts too to help me navigate through my code.

Ok now that you know how to focus in on your code, it's time to grab a coffee and get coding!

 

Resources

PCHenry.com: VS TnT #8: Taking the express to your Solution Explorer

PCHenry.com: VS TnT #7: Fastest draw in the west, how to kill any/all open windows in VS!

Tags:
Categories:
Location: Blogs Parent Separator TechTidBits

2 comment(s) so far...


Re: VS TnT #10: fastest way to get to code or UI designer

I use F7 quite often but I never use the designer only markup, is there a short cut to got to markup or where can I assign a shortcut as I cant find the command in the keybord dialog

By Eugene Niemand on   Sunday, November 28, 2010 11:10 AM

Re: VS TnT #10: fastest way to get to code or UI designer

Hi Eugene, I'm sorry I'm a but confused about what you're asking. Do you mean the HTML? If that's what you mean try the CTRL+PgUp or PgDwn, I think that's what you're looking for. More over, there's settings in Tools,Options, HTML Designer that might interest you.

Does that help? I forgot about the CTRL+PgUp and PgDwn, that's another TnT! Thanks! Have a great week and thank you for commenting.

PS If that's NOT what you were asking, please ask again and I'll try again. We'll figure it out (hopefully over enough coffee LOL).

By phenry on   Sunday, November 28, 2010 9:14 PM

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