Preview in BrowserVS code extension to preview a file in browser, using local web server if defined (otherwise, Web Server domain can be set in workspace setting. Furthermore, a specific browser can be set for previews (default: Firefox Developer Edition). Preview in Browser uses opn to launch the browser app. Browser name is platform dependant as reported in opn readme:
From 1.1 version a string to be removed from the beginning of local path can be defined in the extension settings. This extension was inspired by vscode-extensions-open-in-browser and by vscode-local-web-opener |