Documentation
IDEs and Code Editors
Visual Studio Code

Visual Studio Code (VS Code)

under construct
👾

Tested on macOS Sonoma 14.0

⚠️

THIS PAGE IS CURRENTLY UNDER CONSTRUCTION

Step 1: Install Python

If you don't have installed Python yet, you can follow these instructions. ⬅
💡

If you already have Python installed, you can skip these steps.

Step 2. Download and Install Visual Studio Code

Visual Studio Code is a lightweight yet powerful source code editor. Follow the steps below to download and install Visual Studio Code on macOS:

Go to the Visual Studio Code website

at https://code.visualstudio.com (opens in a new tab).

Click on the Download for macOS

Install Visual Studio Code

Open Finder, go to the Downloads folder, and drag VSCode.app to the Applications folder.

Once the installation is complete, you can launch Visual Studio Code from your Applications folder and start using it for your programming tasks.

Step 3. Add the code command to the PATH

Adding the code command to the PATH allows you to open Visual Studio Code from the Terminal. Follow the steps below to add the code command to your PATH on macOS:

  1. Open Visual Studio Code.
  2. Open the Command Palette by pressing Shift + Command + P
  3. Type shell command and select the option "Shell Command: Install 'code' command in PATH".
  4. Enter your system password if prompted. This step is necessary for granting the required permissions.

After completing these steps, you can now open Visual Studio Code from the Terminal by typing code and pressing Enter. This allows for easier access and quick code editing directly from the command line.

References

SourceDescription
Visual Studio Code Documentation (opens in a new tab)Official documentation for Visual Studio Code
Python Extension for Visual Studio Code (opens in a new tab)Python extension for Visual Studio Code
Command line (opens in a new tab)How to add Visual Studio Code to the PATH