Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS addin: View markup. Does exist something like that?

While working with ASP.NET using Visual Studio (2008) I have discomfort issue: source code editor context menu has only item 'View Designer' but nothing about to view markup quickly!

To see it you need to open Designer and click Markup label in the bottom of a window. Or use Shift+F7 hot key (by default).

So I want to add an item menu 'View Markup' in additional to 'View Designer'. I guess I have to use a Visual Studio add-in if it already exists or write it by myself.

What do you think about that? Is it possible? Or is some solution already exists?

like image 772
abatishchev Avatar asked Feb 16 '09 21:02

abatishchev


2 Answers

Tools > Options > Keyboard

Search for View.ToggleDesigner in "Show Commands Containing".

Add new shortcut to Global/Editor with F7.

This works without needing a macro for VS2008/2010

like image 122
Eugene Baranovsky Avatar answered Sep 28 '22 08:09

Eugene Baranovsky


When you are in code view and would like to see markup view there is no Keyboard shortcut for that. Here is what worked for me:

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

like image 31
Tomas Kirda Avatar answered Sep 28 '22 07:09

Tomas Kirda