3.0: Configuration
Last updated
Last updated
In this module we'll have you configure a few things in Visual Studio Code so that you can optimize your build experience.
For the prework, it will be easiest for us to use Visual Studio Code(blue icon) for running HTML & CSS. We're going to install a package just for opening raw HTML.
Go to the extensions on the left side of VS Code.
Search for open-in-browser
. The package looks like this:
Install the package.
Go into 00-setup.html
in VS Code.
Add the following snippet:
Save your file by pressing ctrl + s
.
On a Windows machine, click on the .html
file and press ctrl + alt + o
.
You should be given a list of browsers. Choose Chrome.
You should see some text in a browser window:
Just a note on saving: VS Code has given us an easy to use tool for identifying unsaved files. The X which normally closes a tab will change to a solid circle or "bubble". It is very important that you adopt the habit of saving files before attempting to execute them.
Here is an unsaved file:
Here is a saved file: