In this post, we will look at how to use Live Server to run a page as a web server in Visual Studio Code.
Open VS Code and select Extensions, then search for Live Server. Click Install:
Next, create a new folder, call it anything, e.g. html, and click Add Folder to add it to VS Code:
Add a new file:
Call it test.html:
Add some HTML and save it:
Now, to run this using Live Server, do the following.
Type CTRL-SHIFT-P and search for Live Server: Open with Live Server:
Your web browser will open to the test.html page using live server: