Home  >  Article  >  Development Tools  >  How to compile and run html files with vscode

How to compile and run html files with vscode

王林
王林Original
2019-12-30 11:07:208615browse

How to compile and run html files with vscode

First open our VS Code software, and then create a new HTML file. Note that when creating a new file in the VS Code software, its suffix must also be written with

How to compile and run html files with vscode

After we wrote the HTML content, we right-clicked the mouse and found that there was no button to run the HTML file

How to compile and run html files with vscode

We need to click on the VS Code software "Extensions" on the left, or hold down the Ctrl shift I key on the keyboard at the same time to enter the "Extensions" interface

How to compile and run html files with vscode

After entering the "Extensions" interface, we enter in the search box "open", then find "open in browser", click "install" in the lower right corner to install

How to compile and run html files with vscode

After installation, we can run our HTML file . After the installation is complete, we return to our HTML interface, then right-click the mouse and find the option identified in the picture below to run

How to compile and run html files with vscode

We can also directly hold down Alt on the keyboard B key to run, then we can see on the web page that our HTML file has been run

How to compile and run html files with vscode

Recommended related articles and tutorials: vscode tutorial

The above is the detailed content of How to compile and run html files with vscode. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn