How to Install Visual Studio Code (VS Code) on Windows, macOS, and Linux

Visual Studio Code (VS Code) is one of the most popular code editors, known for its speed, flexibility, and extensive library of extensions. Whether you’re a beginner or an experienced developer, installing VS Code is the first step toward efficient coding. In this guide, we will walk you through the installation process for Windows, macOS, and Linux.

vs-code

What is an IDE?

An Integrated Development Environment (IDE) is a software application that provides developers with a comprehensive set of tools to write, edit, debug, and compile code efficiently. Unlike simple text editors, an IDE comes with features like syntax highlighting, code completion, version control integration, and debugging tools, making the development process smoother and faster. Popular IDEs include Visual Studio Code, PyCharm, Eclipse, IntelliJ IDEA, and Android Studio, each tailored for specific programming languages and workflows. By offering a centralized workspace, an IDE helps developers focus on coding rather than managing multiple tools separately.

1. Installing on Windows

Step 1: Download the setup

  1. Open your web browser and go to the official VS Code download page.
  2. Click on the Windows version.
  3. The download will start automatically.

Step 2: Install the setup

  1. Once the file (VSCodeUserSetup-x64.exe) is downloaded, open it.
  2. Click Next to start the setup wizard.
  3. Accept the license agreement and click Next.
  4. Choose the installation location (default is recommended).
  5. In the next window, check the boxes for:
    • “Add to PATH (recommended)”
    • “Create a desktop shortcut” (optional)
  6. Click Install and wait for the process to complete.
  7. Click Finish to launch VS Code.

2. Installing on macOS

Step 1: Download the setup

  1. Visit the official VS Code download page.
  2. Click on the macOS version.
  3. A .zip file will be downloaded.

Step 2: Install the setup

  1. Open the downloaded .zip file.
  2. Drag and drop the Visual Studio Code application into the Applications folder.
  1. Open VS Code and press Cmd + Shift + P.
  2. Type Shell Command: Install 'code' command in PATH.
  3. Select it and press Enter.
  4. Now, you can open VS Code from the terminal using the command: code .

3. Installing on Linux

Step 1: Download VS Code

  1. Go to the official VS Code download page.
  2. Choose the appropriate package for your distribution:
    • .deb for Debian/Ubuntu
    • .rpm for Fedora/Red Hat
    • .tar.gz for manual installation

Step 2: Install on Ubuntu/Debian

  1. Open the terminal and navigate to the downloaded file location.
  2. Run the following command to install: sudo dpkg -i code*.deb sudo apt-get install -f
  3. Once installed, open VS Code using the command: code

Step 3: Install on Fedora/Red Hat

  1. Open the terminal and navigate to the downloaded file.
  2. Run the following command: sudo rpm -i code*.rpm
  3. Open VS Code using the code command.

Step 4: Install on Other Linux Distros

  1. Extract the .tar.gz file: tar -xvzf code*.tar.gz
  2. Navigate to the extracted folder and run: ./code

4. Setting Up After Installation

Install Extensions

  1. Open the application.
  2. Click on the Extensions icon in the sidebar.
  3. Search for popular extensions like:
    • Python
    • Live Server
    • Prettier (for formatting)
    • GitHub Copilot
  4. Click Install to add them to your IDE.

Enable Git Integration

  1. Install Git from git-scm.com.
  2. Restart VS Code and go to Source Control to manage Git repositories.

Conclusion

Now that you have successfully installed VS Code, you are ready to start coding! With its vast extension library and built-in features, VS Code makes coding more efficient and enjoyable. Happy coding! 🚀

Learn More:
Best Web Series You Can not Miss in 2025
Top 10 Must-Watch Movies of 2025: The Ultimate Movie Guide

Leave a Comment