VS addin: view markup. Is there something similar?

When working with ASP.NET using Visual Studio (2008), I have a problem with discomfort: in the context menu of the source code editor there is only the " View Designer " element, but there is nothing to quickly view the markup!

To see it, you need to open the constructor and click on the label "Label" at the bottom of the window. Or use the Shift + F7 hotkey (default).

So, I want to add the " View Markup " menu in addition to the " View Designer ". I assume that I should use the Visual Studio Add-in if it already exists or write it myself.

What do you think about it? Is it possible? Or is there some kind of solution already?

+4
source share
4 answers

Tools> Options> Keyboard

Locate View.ToggleDesigner in the "Show Commands Containing" section.

Add a new shortcut for Global / Editor with F7.

This works without the need for a macro for VS2008 / 2010

+10
source

When you are in code view mode and want to see the layout, there is no keyboard shortcut for this. Here is what worked for me:

http://www.karpach.com/Visual-Studio-F7-View-Source.htm

+4
source

If you right-click the file in "Solution Explorer", you will get the option "View markup".

+1
source

Typically, to add a command to context menus, you do the following:

Tools | Customization

On the “Toolbars” tab, check the box next to “Context menus” - this will add a new toolbar to your IDE with buttons for editor context menus, class context menus, debugger context menus, etc.

Then go to the “Teams” tab, select the desired command and drag it to the appropriate menu, and everything will be ready - in this case, select “View” in the left pane, and then to the right, scroll down until you reach “View markup”.

In this case, I can add a button to the context menu for the code editor, but it is inactive and unusable - I think it needs some kind of context that it receives from the Solution Explorer, t get from the code window - which is odd, because it pulls the same details for the "View Designer" and "View Code".

I think I would use Shift + F7, and then, sorry.

+1
source

All Articles