How to open vscode browser?
vscode settings to view the html page in the browser
First open the program and write an html program.
Then click the extension on the fifth row on the left, or use the shortcut key ctrl shift X to open the extension bar.
Recommended tutorial: vscode tutorial
Enter "open in browser" in the search bar of the extension bar, and then you can find it Open in browser is a plug-in, and the word "Install" will be displayed in the lower right corner of the plug-in.
Because I have already installed it here, the installation is not displayed.
#After the installation is complete, you can check the documentation, which contains the shortcut keys used by the plug-in. Displayed as Alt B in the default browser; displayed as Shift Alt B in other browsers.
#Go back to the html document you created at the beginning and you can use shortcut keys to run it. You can also right-click on the HTML document and choose to open it with the default browser or another browser in the pop-up window.
If you choose to open in other browsers, the command box in the middle will display the browsers that can be used, just select the browser name you need, here we use Try chrome.
You can see that the program was successfully run in the browser.
The above is the detailed content of How to open vscode browser. For more information, please follow other related articles on the PHP Chinese website!