Freigeben über


Toggle Designer

Keyboard:  F7
Command:  View.ToggleDesigner
Versions:  2008,2010
Published:  10/19/2010
Code:  vstipEnv0044

 

You can use F7 to go from the current Source or Design view:

image

image

 

To Code view:

image

image

 

To go back just hit F7 again.  It's a toggle so it will jump you back and forth between the views. 

 

Interestingly, in WPF applications, you can use F7 to view code but not to go back to Design view so it isn't a full toggle operation in that particular case.

Comments

  • Anonymous
    October 18, 2010
    Shift+F7 will take you back.  However it always seems to put you in "Design" mode instead of "Source" or "Split" if that's what you were in before.  Maybe someone else knows how to fix that one.

  • Anonymous
    October 18, 2010
    @Matt just hit F7 again to go back.  It's a toggle.  I need to update the post to reflect that i see. :)

  • Anonymous
    October 19, 2010
    In VB it is NOT a toggle, you use F7 to show code, Shift+F7 to show form.

  • Anonymous
    October 19, 2010
    Ronny --  As a sanity check, I just re-tested it in VS2010 and it IS a toggle on vb windows forms and vb web forms.  Could it be a versioning issue?

  • Anonymous
    October 19, 2010
    I do not know which issue it is :-) I'm using VS 2010, and I can not switch to the windows form in VB from the code with F7, I need to use Shift+F7. It might be some settings in the keyboard mappings? I selected Visual Basic on the first startup, where they ask which environment I want... Not a big deal though...

  • Anonymous
    October 19, 2010
    That's interesting because its not a toggle for me either....I know I chose c# when I first started up, works either way though. Thanks for all the tips!

  • Anonymous
    October 19, 2010
    Ronny and Matt -- thanks for the info.  I wonder if I can do it because I'm using general settings and you two aren't?  I'll test it later this week and see if that is what is going on.

  • Anonymous
    November 07, 2010
    How do I see the form again? The graphical view, it has disappeared from the solution explorer  when i copied the project from another computer.

  • Anonymous
    November 12, 2010
    @jonas -- can you shoot me details to zainnab@microsoft.com so I can get a better idea of what is going on.