Coding

VS Code Update: How to Update Visual Studio Code Manually

To run a VS Code update by hand, open Help > Check for Updates and install the version it offers. On Windows and macOS VS Code normally updates itself, and on Linux updates arrive through your package manager.

The Help menu entry is documented for machines where automatic checking is off. If your copy is already up to date, there is nothing to install.

How to update VS Code on Windows and macOS

  1. Open Help > Check for Updates.
  2. If a newer version exists, VS Code downloads it and asks you to restart to finish. Save your work first.
  3. After the restart, open Help > About to confirm the version number.

The Microsoft docs describe this menu path for manual mode. The exact wording of the download and restart prompts can differ between versions, so follow what the dialog says. If the Help menu is missing, press Alt to show the menu bar.

If the menu offers nothing and you still want the newest build, download the installer from the official site and run it over the existing install. Your settings and extensions are kept, because they live in your user profile folder, not in the program folder.

How to update VS Code on Linux

The method depends on how you installed it.

Install methodHow it updates
Debian or Ubuntu .deb (apt repository)sudo apt update && sudo apt install code
Fedora 22 and later (dnf)dnf check-update && sudo dnf install code
Older RHEL or CentOS (yum)yum check-update && sudo yum install code
openSUSE or SLEsudo zypper install code
SnapThe Snap daemon updates it in the background
Manually downloaded .rpmInstall the new file: sudo dnf install <file>.rpm

If you use the Insiders build, replace code with code-insiders in these commands.

The .deb package offers to add the Microsoft apt repository and signing key when you install it, and that repository is what makes automatic updates work. The docs note that the Debian repository can lag behind the latest release by up to three hours, so a version you just saw announced may not appear straight away. The docs also say that on RPM systems, "Auto-update does not work unless the repository is installed", so a one-off downloaded .rpm never updates itself.

The Linux page does not list update commands for the community-maintained Arch (AUR) and Nix packages. Use those ecosystems' own tools.

How VS Code auto-update works, and how to turn it off

The VS Code FAQ says that by default the editor is set up to auto-update for macOS and Windows users when new versions are released. The setting that controls this is Update: Mode (update.mode). The enterprise documentation lists four values:

ValueBehavior
defaultAutomatic checking runs in the background
startChecks for updates only when VS Code starts
manualNo automatic checking; you can still use Help > Check for Updates
noneUpdates are disabled entirely

To change it, open Settings (Ctrl+, on Windows and Linux, Cmd+, on macOS), search for update.mode, and pick a value. In settings.json the same thing looks like this:

{
  "update.mode": "manual"
}

Stable releases ship weekly, according to the setup overview, so leaving automatic updates on keeps you reasonably current without any effort.

Which value to choose is a personal call. Use manual if you want to decide when the editor restarts, for example in the middle of a long debugging session. Use none only when something else, such as an administrator or a package manager, is responsible for updates. Remember that a version you never update also stops receiving the fixes that newer releases carry.

Update VS Code extensions

Extensions update separately from the editor. The FAQ says VS Code automatically updates them as new versions become available. To stop that, set Extensions: Auto Update (extensions.autoUpdate) to off.

Update fails or is unavailable

  • Managed work computer. The setup overview says an organization may control installation and updates. If update.mode is greyed out or fixed, an administrator has set a policy; ask them for the update.
  • Restricted network. The enterprise docs say VS Code downloads updates from update.code.visualstudio.com. If a firewall or proxy blocks that host, the check fails.
  • Old operating system. The FAQ states that VS Code no longer provides product updates or security fixes on old Windows versions, and that macOS Big Sur (11.0) and older stopped receiving updates after version 1.106. Upgrade the OS to get newer releases.
  • You want an older version. The FAQ's method is to uninstall your current version and install the download linked at the top of the older release's notes.

Frequently asked questions

Does VS Code update automatically?
On Windows and macOS, yes. By default VS Code is set up to auto-update when a new version is released. On Linux, updates come from your package manager if you installed from the Microsoft repository, or from the Snap daemon if you installed the snap.
How do I turn off VS Code auto-update?
Open Settings, search for update.mode, and change Update: Mode from default to none (no updates at all) or manual (no automatic checks, but Help > Check for Updates still works). You can also set it to start, which checks only when VS Code launches.
How do I install an older version of VS Code?
Uninstall the current version, then install the older one. The VS Code FAQ says to use the download linked at the top of that version's release notes. Set update.mode to none afterwards, or the editor will update itself again.
Why does VS Code say my operating system is no longer supported?
VS Code stops providing product updates and security fixes on old Windows versions, and macOS Big Sur (11.0) and older stopped receiving updates after VS Code 1.106. Upgrading the operating system is the only way to get newer VS Code releases.
Do VS Code extensions update separately?
Yes. By default VS Code updates extensions automatically as new versions become available. The setting is Extensions: Auto Update (extensions.autoUpdate); set it to off to stop this.

Sources