Search code examples
visual-studio-code

Visual Studio code 'open in browser' extension failed


I have installed Open in browser visual studio extension. But when I try to open the browser by shortcut Alt+B. It fails showing the following:

Running the contributed   
command:'extension.openInDefaultBrowser' failed.

Please help if there's any solution.


Solution

  • Go to settings --> Extensions --> Open in Browser and set a default browser. In my case I have set it to "chrome" (it can be "firefox" too), so it opens in chrome every time I use the extension.

    enter image description here