5

As the title has said.The default browser is IE,but I want another browser to be used.How can I do for this?

Anne
  • 73
  • 1
  • 1
  • 7
  • 1
    It is already answered , http://stackoverflow.com/questions/79954/visual-studio-opens-the-default-browser-instead-of-internet-explorer – Sdp Apr 16 '17 at 03:00
  • 10
    visual studio code is not the same as visual studio.Thank you for your answer. – Anne Apr 16 '17 at 04:20
  • 1
    Possible duplicate of [Visual Studio opens the default browser instead of Internet Explorer](http://stackoverflow.com/questions/79954/visual-studio-opens-the-default-browser-instead-of-internet-explorer) – cosmoonot Apr 16 '17 at 06:04
  • you can find the solution [her](https://stackoverflow.com/questions/30039512/how-to-view-my-html-code-in-browser-with-visual-studio-code) this solution used the tasks.json file – Amine barrima Feb 16 '18 at 09:45

2 Answers2

3

You can change Windows Default setting programs to your Browser.

Windows7 :

Controlpanel --> Programs-->set default programs

Helen Anita
  • 143
  • 1
  • 2
  • 12
  • 1
    Chrome is my default browser, but VS code doesn't care. It still opens in Edge, which doesn't let me simply right click and inspect element and read console logs. – Altimus Prime Aug 26 '19 at 00:52
  • 4
    This answer is correct for changing the Windows default browser. It does not answer the question of how to change the default browser within Visual Studio Code – samp Mar 30 '20 at 16:13
-1
  1. Install extension qinjia.view-in-browser.
  2. Press F1, find parameter 'view-in-browser.customBrowser'.
  3. Select your browser while editting.