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

后端 未结 4 1828
北海茫月
北海茫月 2020-12-19 13:17

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

4条回答
  •  醉梦人生
    2020-12-19 13:19

    Generally, to add a command to the context menus you'd do the following:

    Tools | Customize

    On the "Toolbars" tab put a tick next to the "Context Menus" item - this will add a new toolbar to your IDE, with buttons for Editor Context Menus, Class View Context Menus, Debugger Context Menus, etc

    Then switch to the "Commands" tab, select the command you want, and drag it to the appropriate menu, and you're done - in this case in the left hand pane select "View", and then in the right hand pane, scroll down until you get to "View Markup".

    That being said, in this instance, I can add the button to the context menu for the code editor, but it's greyed out, and unusable - I guess it needs some context that it gets from the Solution Explorer that it doesn't get from the Code window - which is odd, because it's pulling the same details through for "View Designer" and "View Code".

    I guess I'd use Shift+F7 then, sorry about that.

提交回复
热议问题