Set up VS Code for web development

VS Code is where you write and save your files. Your browser shows the page. Follow the Windows or Mac steps, then open a folder where you can keep your first website.

Windows · install and open VS Code

1. Open the official VS Code download page. In the Windows column, choose the User Installer for your computer. Open the downloaded file and follow the installer.
Download Visual Studio Code · https://code.visualstudio.com/download

2. Open Start, type Visual Studio Code and select it. Look for File in the menu and the Explorer icon in the sidebar.
What you should see · A VS Code window with an Explorer icon that looks like two pages.

Mac · install and open VS Code

1. Open the official download page and choose the Mac download. In Finder, open the download. If it is a ZIP, double-click it to extract Visual Studio Code.
Download Visual Studio Code for Mac · https://code.visualstudio.com/download

2. Drag Visual Studio Code into Applications. Open Applications in Finder, then open Visual Studio Code. The File menu is at the top of your screen.
What you should see · A VS Code window with an Explorer icon that looks like two pages.

Open a project folder and save a file

1. In File Explorer on Windows or Finder on Mac, open Documents and create a folder named signal-station. This folder will hold all the files for the next lesson.

2. In VS Code, choose File → Open Folder. Select signal-station. If VS Code asks whether you trust the folder, check that it is the one you just created and then continue.
What you should see · SIGNAL-STATION appears in the Explorer sidebar.

3. In Explorer, click the New File icon next to the folder name. Type index.html and press Enter. To save after editing, press Ctrl+S on Windows or Command–S on Mac.
What you should see · index.html appears in the sidebar and opens in an editor tab.

4. VS Code has HTML, CSS and JavaScript editing built in. Open File → Open Recent next time to find your project. You can also use Coding Studio in your browser for the next lesson.
