To install Visual Studio Code (VSCode) on Windows, download the official installer from code.visualstudio.com, run it, and follow the setup wizard. The process takes about two minutes and requires no additional dependencies. This guide covers the download, installation options, first-run setup, and common issues you might encounter.

What VSCode Is and Why Install It on Windows

Visual Studio Code is a free, open-source code editor developed by Microsoft. Despite the "Visual Studio" name, it is a separate product from the full Visual Studio IDE: VSCode is lightweight (around 100 MB installed), cross-platform, and built on Electron, the same framework behind many desktop apps. It supports hundreds of programming languages through extensions and includes built-in Git integration, a debugger, and an integrated terminal.

On Windows, VSCode runs natively as a desktop application. It is available for Windows 10 and Windows 11 in both 64-bit and ARM64 builds, and there is a 32-bit build for older hardware. Microsoft ships a user installer (installs per-user, no admin rights needed) and a system installer (installs for all users, requires administrator privileges). Most home users should choose the user installer; it avoids permission prompts and updates more smoothly.

Downloading the Correct Installer

Go to the official site at code.visualstudio.com and click the Download for Windows button. The site auto-detects your architecture, but you can expand the dropdown to pick a specific build. Match the installer to your system:

  • User Installer (64-bit): the default for most people; installs under your user profile.
  • System Installer (64-bit): for shared machines or when IT policy requires a machine-wide install.
  • ARM64 builds: for Windows on ARM devices such as some Surface models and Snapdragon laptops.
  • 32-bit builds: only for older hardware still running 32-bit Windows.

Avoid third-party download sites. The official installer is signed by Microsoft, and mirrored copies can be outdated or bundled with unwanted software. If you prefer a package manager, VSCode is also available through winget (winget install Microsoft.VisualStudioCode) and Chocolatey, which handle updates for you.

Running the Installer: Step by Step

  1. Locate the downloaded file (typically named VSCodeUserSetup-x64-version.exe) and double-click it.
  2. Accept the license agreement and click Next.
  3. Choose the destination folder. The default is fine unless you have a specific reason to change it.
  4. On the Start Menu folder screen, keep the default or rename the shortcut folder.
  5. On the Select Additional Tasks screen, review the checkboxes. Useful options include adding "Open with Code" to the file and folder context menus, registering VSCode as an editor for supported file types, and adding the install folder to PATH so the code command works in terminals.
  6. Click Install, wait for the progress bar to finish, then click Finish. Leave the "Launch Visual Studio Code" box checked if you want it to open immediately.

The user installer does not require administrator rights, which is one reason it is the recommended choice. The system installer will prompt for elevation (UAC) and place the application under Program Files.

First-Run Setup and Useful Defaults

On first launch, VSCode shows a Welcome tab with a few customization options. You can pick a color theme, and the welcome page links to a short interactive playground that demonstrates the editor. A few settings worth enabling early:

  • Auto Save: File > Auto Save saves changes as you type, reducing lost work.
  • Format On Save: enable in Settings (search "format on save") so files are formatted automatically when saved, provided a formatter extension is installed for that language.
  • Extensions: open the Extensions view (Ctrl+Shift+X) and install language support, for example the Python or C/C++ extensions, plus themes and linters as needed.
  • Settings Sync: sign in with a Microsoft or GitHub account to sync settings, extensions, and keybindings across machines.

The integrated terminal (Ctrl+`) uses PowerShell by default on Windows. You can change the default profile in Settings under Terminal > Integrated > Default Profile.

Common Installation Problems and Fixes

Most installs go smoothly, but a few issues come up repeatedly:

  • SmartScreen warning: Windows may show "Windows protected your PC" for a freshly downloaded installer. Click More info, verify the publisher is Microsoft, then Run anyway. This happens because new releases have low download reputation initially.
  • Installer fails silently or rolls back: check that you have enough disk space and that no previous VSCode process is running. Restart, then retry. Running the installer as administrator can help with the system installer.
  • "code" is not recognized in the terminal: the PATH option was not checked during setup. Re-run the installer and enable "Add to PATH," or add the bin folder manually to your environment variables.
  • Extensions fail to install: usually a network, proxy, or certificate issue. Check Settings > Application > Proxy and confirm your connection allows the extension marketplace.
  • Update errors: if the user installer cannot update, download the latest installer and run it over the existing installation; settings and extensions are preserved.

How VSCode Compares to Other Windows Editors

VSCode sits between a plain text editor and a full IDE. Compared with Notepad++, it offers richer language support, debugging, and Git integration, at the cost of a larger install and more memory use. Compared with the full Visual Studio IDE, it is far lighter and faster to start, but lacks some deep .NET and C++ tooling that the full IDE provides. For web development, Python, and general-purpose scripting, VSCode is a common default choice on Windows.

Alternatives worth knowing include Sublime Text (fast, paid), JetBrains IDEs (heavier, paid, language-specific), and Neovim (terminal-based, steep learning curve). VSCode's main advantages are its extension ecosystem and free price.

Cost, Licensing, and Telemetry

VSCode is free for personal and commercial use. The source code is available under the MIT license, though the official Microsoft-built binaries include some proprietary components and telemetry. Telemetry can be disabled in Settings under Application > Telemetry by setting the telemetry level to off. No account is required to use the editor; signing in is only needed for Settings Sync and some extensions.

Frequently Asked Questions

Do I need administrator rights to install VSCode? No, if you use the user installer. It installs under your profile and does not require elevation. The system installer does require admin rights.

Does VSCode work on Windows 7? Recent versions of VSCode no longer support Windows 7 or 8.1. You need Windows 10 or 11 for current releases; older versions may still run on legacy systems but receive no updates.

How do I uninstall VSCode? Use Settings > Apps > Installed apps, find Visual Studio Code, and choose Uninstall. Your settings and extensions live in %APPDATA%\Code and %USERPROFILE%\.vscode and are not removed automatically.

Can I install VSCode without an internet connection? Yes, download the installer on another machine and copy it over. However, extensions require internet access to install from the marketplace unless you sideload VSIX files manually.

Why does the installer say a newer version is already installed? An existing installation was detected. Either update through the app (Help > Check for Updates) or run the newer installer, which will upgrade in place.

Is VSCode the same as Visual Studio? No. They are separate products. Visual Studio is a full IDE, mainly for .NET and C++ on Windows; VSCode is a lightweight, cross-platform editor.