Skip to content
05Install guides · 10 min

Install VS Code

VS Code is a free code editor where you can read what your agent changed, run a terminal, and add agent extensions.

Roman Urdu: VS Code free editor ha, purane laptop pe bhi chal jata ha. Agent ne kya badla, yahan aaram se dekh sakte hein.

Cost: Free.

Windows

  1. Low-end machines are fine: VS Code recommends a 1.6 GHz CPU and 1 GB of RAM, and takes under 500 MB of disk.
  2. Download the User Installer from code.visualstudio.com/download. It needs no admin rights.
  3. In the installer, keep Add to PATH checked. That gives you the code command in the terminal.
  4. Open a new terminal and open any folder in VS Code:
    $ code .

macOS

  1. Download VS Code for macOS, open the .dmg, and drag Visual Studio Code into Applications.
  2. To get the code command: open VS Code, press Cmd + Shift + P, type shell command, and run Shell Command: Install 'code' ... in PATH. Then restart Terminal.
  3. Open any folder in VS Code:
    $ code .

Linux (Ubuntu/Debian)

  1. Download the .deb from code.visualstudio.com/download, then install it from your Downloads folder (this also adds the update repository):
    $ cd ~/Downloads
    $ sudo apt install ./code_*.deb
  2. Or with Snap:
    $ sudo snap install --classic code
  3. Fedora: follow the RPM repository steps on the VS Code Linux page, then sudo dnf install --refresh code.
  4. Using WSL? Install VS Code on Windows, not inside Ubuntu. Typing code . in Ubuntu opens the Windows app connected to WSL.

Check it worked

$ code --version

a version number like 1.x.x on the first line

Common errors

code is not recognized (Windows)
Restart the terminal. If it still fails, run the installer again with Add to PATH checked, or add %LOCALAPPDATA%\Programs\Microsoft VS Code\bin to PATH.
code: command not found (macOS)
Run the Shell Command: Install 'code' step from the Command Palette, then open a new Terminal window.
VS Code is slow on an old laptop
Open one folder at a time, disable extensions you do not use (Extensions panel), and close other apps. Or use a terminal agent and skip the editor.
Linux: the app does not start on an old distro
VS Code needs Ubuntu 20.04 / Debian 10 or newer (glibc 2.28+). Upgrade the OS or use a terminal agent instead.

Official docs

Checked against these pages on 2026-12-05. Tools change: if a step differs, the official page wins.