问题
I'm trying to change the default browser to Chrome at VS Community 2015, I'm not talking about release browser, but the browser that opens when I press CTRL-Click. It opens automatically on Internet Explorer.
回答1:
Click the drop down icon next to "Start" project button and choose your web browser
回答2:
To change the source default editor:
Tools -> Options -> Search for "browser" -> View Source in "external editor" -> put the path to your preferred.
回答3:
This is how:
Right-click your html file -> Browse with -> Click on your favorite browser -> Set as Default.
Note that the next time you'd right-click your html file, you'd still see it says: "View in Browser (Internet Explorer)", but clicking it will actually browse with the default browser we set above.
回答4:
After spending 5 minutes searching online and not finding what I want, I dug into the Visual Studio interface and found it:
The internal web browser in Visual Studio 2019 (at least), is in View => Other Windows => Web Browser
, or CTRL+ALT+R
on Windows.
EDIT: According to the Microsoft Documentation, you can send the web browser command to devenv
directly using nav
, i.e.
devenv /command "nav https://docs.microsoft.com/"
来源:https://stackoverflow.com/questions/42243177/change-default-web-browser-in-visual-studio