How can Visual Studio Code open a browser to display HTML? directly in the editor

how can Visual Studio Code open a browser to display HTML? directly in the editor


this is unfriendly. You can install a plug-in open in browser and select the html file you want to open. Choose to open it in a browser


.
  1. right-click the corresponding html file and select the penultimate launch on default browser.
  2. install live-server
:npm install -g live-server
:live-server
  1. use hot follow new tools.

emmm select the file name and drag it into the browser.

Menu