Live preview of website when editing in Visual Studio Code

VSCode, being extremely lightweight (at least compared to Visual Studio), does not come with its own web server. This can be a bit confusing for those of us used to just hitting F5 in Visual Studio and getting our website launch in a browser.

When using VSCode, you have to rely on the power of Node.js instead.

This is a tutorial of how to start a really small project, containing only a single HTML file in VSCode and edit it with live preview in a browser.

This post helped point me in the right direction; not exactly what I had to do but for the most part it helped me find what was going wrong with VSC. So thank you for that!

The link on this post for downloading node.js is sort of broken, so here it is: https://nodejs.org/en/
After installing the current version of node.js, I edited the environment variables on Path. I added both the location of where the node installed (which was C:\Program Files\nodejs for me) and also added: %USERPROFILE%\AppData\Roaming\npm.
Next after reopening VSC, in the command prompt/terminal (opened with CTRL + `):
1) I typed npm i -g npm to install the global node package manager.
2) Then I type npm i -g update to update the manager.
3) lastly I installed live-server by typing npm i -g live-server.

After all that live-server worked for me.
If you install node.js and still receive an error from the command prompt/terminal when you type npm i -g npm, I cannot say what is wrong but wish you luck in fixing your issue.

Again thanks to Bjarte Aune Olsen for opening the dialogue and for helping me figure this out.