How to Set Up Visual Studio Code (VSCode) on Mac or Windows
In this article, I'll share with you a step-by-step process for setting up VSCode on Mac or Windows:
For Windows
- Open your web browser and go to the VSCode download page.
- Click on the "Download for Windows" button.
- Once the download is complete, open the downloaded
.exefile once the download is finished. - Follow the installation prompts:
- Accept the agreement.
- Choose the installation location (the default is usually fine).
- Select additional tasks (it's recommended to check "Add to PATH" and "Create a desktop icon").
- Click "Install" and wait for the installation to complete.
- Click "Finish" to launch VSCode.
For Mac
- Open your web browser and go to the VSCode download page.
- Click on the "Download for macOS" button.
- Once the download is complete, open the downloaded
.zipfile. - Drag the Visual Studio Code application to the
Applicationsfolder. - Open the
Applicationsfolder and double-click on Visual Studio Code to launch it.
When you first open VSCode, you might see a welcome screen. You can explore this or close it to get to the main interface. You may be prompted to install recommended extensions for your setup. You can install them to get additional functionality.
Start Coding!
Once the application running you can start writing code:
- Create a new file by clicking
File>New File. - Save it with an appropriate extension (e.g.,
.pyfor Python,.htmlfor HTML). - Start writing your code!
Open an Existing Folder or File
To start working on an existing project or file, you'll need to open a folder or a file:
- Click on
Filein the top menu. - Select
Open Folder...orOpen File.... - Navigate to the folder or file you want to open and click
Open.
If you are still a little lost, use the extensive documentation available on the VSCode website.
You can also leave your questions in the comments below or in the Codú Discord.
