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
- 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.
- Download the User Installer from code.visualstudio.com/download. It needs no admin rights.
- In the installer, keep Add to PATH checked. That gives you the
codecommand in the terminal. - Open a new terminal and open any folder in VS Code:
$ code .
macOS
- Download VS Code for macOS, open the
.dmg, and drag Visual Studio Code into Applications. - To get the
codecommand: open VS Code, press Cmd + Shift + P, typeshell command, and run Shell Command: Install 'code' ... in PATH. Then restart Terminal. - Open any folder in VS Code:
$ code .
Linux (Ubuntu/Debian)
- Download the
.debfrom code.visualstudio.com/download, then install it from your Downloads folder (this also adds the update repository):$ cd ~/Downloads$ sudo apt install ./code_*.deb - Or with Snap:
$ sudo snap install --classic code - Fedora: follow the RPM repository steps on the VS Code Linux page, then
sudo dnf install --refresh code. - 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 --versiona version number like 1.x.x on the first line
Common errors
codeis 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\binto 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
- VS Code: Setup overview
- VS Code: Requirements
- VS Code: Windows
- VS Code: macOS
- VS Code: Linux
- VS Code: Download
Checked against these pages on 2026-12-05. Tools change: if a step differs, the official page wins.