How to add the view in browser option back into Visual Studio 2017 context menu?

前端 未结 3 964
时光说笑
时光说笑 2021-02-07 10:19

I\'ve just upgraded to VS 2017 and unless I\'m missing something the view in browser option on the right click menu seems to have vanished.

Anyone know how to get it bac

相关标签:
3条回答
  • 2021-02-07 11:02

    Actually (in 15.8.7), it is still in the context Menu - in a sub-menu under View

    Jon L's method will create it in the main menu as well

    Alternatively, just use the shortcut - press Ctrl+Shift+W

    0 讨论(0)
  • 2021-02-07 11:13

    Concerning the 'View in Browser' in Visual Studio.

    • In the solution explorer, right-clicking on an allowed web document(htm, html, asp, aspx, etc) allows the page to come up in our default browser.
    • Most other files do not provide the 'View in Browser' option.
    • but a right-click on the solution/project/website name(1st in the list at top) does provide the 'View in Browser' option, yet it does not find the default document specified in 'Specific Page' in the 'web' section of (its) properties!~ and instead will display a Directory Listing of the web site root.
    0 讨论(0)
  • 2021-02-07 11:18

    I just installed Visual Studio 2017 and noticed this option was missing from the Project context menu.

    However you can right click on project files to view them in the browser.

    To add the "View in Browser" option back into the Project context menu, follow these steps:

    • Click on Tools > Customize

    • Select the "Commands" tab

    • Highlight the "Context menu" option
    • In the dropdown select "Project and Solution Context Menus | Project"

    • Click "Add Command"
    • Select the "File" category
    • In the Commands list, select "View in Browser" and press OK

    You can then position the option in the menu and the option will be available to use once again.

    0 讨论(0)
提交回复
热议问题