Does Visual Studio Code work on Linux?
by Microsoft Corporation
- Proprietary license
- 4.5M installs on Flathub
- Latest version 1.145.3
- Developer tools
Yes. Microsoft publishes an official Linux version of Visual Studio Code. It’s on Flathub (4.5M installs) and in the Arch Linux repositories.
Install Visual Studio Code
Not packaged for Ubuntu. Use Flatpak:
flatpak install flathub com.visualstudio.codeNot packaged for Debian. Use Flatpak:
flatpak install flathub com.visualstudio.codeNot packaged for Fedora. Use Flatpak:
flatpak install flathub com.visualstudio.codesudo pacman -S codeNot packaged for openSUSE. Use Flatpak:
flatpak install flathub com.visualstudio.codeflatpak install flathub com.visualstudio.codeor, on any distro: flatpak install flathub com.visualstudio.code
How to install Visual Studio Code on Linux
Microsoft provides an official Linux version on its website.
Ubuntu does not package Visual Studio Code in our data. The Flatpak works there instead:
flatpak install flathub com.visualstudio.codeDebian does not package Visual Studio Code in our data. The Flatpak works there instead:
flatpak install flathub com.visualstudio.codeFedora does not package Visual Studio Code in our data. The Flatpak works there instead:
flatpak install flathub com.visualstudio.codesudo pacman -S codeInstalls Visual Studio Code 1.138.0 from Arch Linux’s own repositories, so normal system updates keep it current.
openSUSE Tumbleweed does not package Visual Studio Code in our data. The Flatpak works there instead:
flatpak install flathub com.visualstudio.codeflatpak install flathub com.visualstudio.codeInstalls Visual Studio Code 1.145.3 from Flathub, a listing not verified by the developer. It works on any distro once Flatpak is set up.
Which version of Visual Studio Code will you get?
| Distribution | Release | Version | Status |
|---|---|---|---|
| Ubuntu | 26.04 LTS | Not packaged | — |
| Debian | 13 | Not packaged | — |
| Fedora | 45 | Not packaged | — |
| Arch Linux | Rolling | 1.138.0 | Older |
| openSUSE Tumbleweed | Rolling | Not packaged | — |
| Flathub (any distro) | Released Nov 10, 2026 | 1.145.3 | Newest |
Versions from Repology and Flathub, checked Nov 21, 2026. “Newest” is the highest version in this table, not necessarily the developer’s latest release. AUR packages are user-maintained; review them before installing.
Any distro: Flatpak from Flathub
Flathub lists it as “Visual Studio Code” (com.visualstudio.code), described as “Code editing. Redefined”. The listing is not verified, so Microsoft has not confirmed it as its own package; Flathub shows “Microsoft Corporation” as the developer name. It has been installed 4,497,421 times, number 9 of the 94 apps in our catalog that have a Flathub install count. Flathub does not flag its license as free software, so it may be proprietary.
Linux Mint, Pop!_OS and Zorin OS have Flathub enabled out of the box, Fedora offers it as an optional third-party repository, and on Ubuntu you install Flatpak first.
Which install method should you use for Visual Studio Code?
Use Flatpak unless you run Arch Linux: only Arch Linux packages it in our data, and Flatpak works on all of them.
- Microsoft’s own download. Microsoft publishes the Linux version itself on its website.
- Flatpak from Flathub. It is not a verified listing, so check that you trust its maintainer. It works the same on every distro, so it is the way to get one package everywhere.
- Your distro’s repositories. Arch Linux carries it in its own repositories, so a normal system update keeps it current. We found no package for Ubuntu, Debian, Fedora and openSUSE Tumbleweed.
Our take on Visual Studio Code for Linux
Microsoft ships Visual Studio Code for Linux as .deb and .rpm packages with its own repository, and as an official Snap. VS Code releases weekly, and both routes keep it updated automatically.
Install from Microsoft
The .deb asks to add Microsoft’s apt repository, which turns on automatic updates. Fedora, RHEL and openSUSE use Microsoft’s yum or zypper repository. The Snap is official too and updates in the background. Microsoft notes that a manually installed .rpm does not auto-update unless the repository is set up.
“code” on Arch is the open-source build
Arch Linux’s code package is “the Open Source build of Visual Studio Code”, built from Microsoft’s public source rather than Microsoft’s branded release. Microsoft’s documentation points Arch users to the community-maintained visual-studio-code-bin package in the AUR for its build. The Flathub version is also community-maintained.
If VS Code stops noticing file changes
In large projects you may see “unable to watch for file changes”. Microsoft’s fix is to exclude big folders with the files.watcherExclude setting, or raise the system’s fs.inotify.max_user_watches limit (Microsoft suggests 524288).
Sources and method
Editorial guidance based on the sources below. Reviewed Oct 12, 2026.
Visual Studio Code as an alternative to Visual Studio, Notepad++ and Xcode
We list Visual Studio Code as a Linux alternative for these apps. Each page explains whether the original runs on Linux at all.
- Visual StudioNo Linux version
- Notepad++No Linux version
- XcodeNo Linux version
Sources
Visual Studio Code on Linux: common questions
Does Visual Studio Code work on Linux?
Yes. Microsoft publishes an official Linux version of Visual Studio Code. It’s on Flathub (4.5M installs) and in the Arch Linux repositories.
How do I install Visual Studio Code on Ubuntu?
Install it from Flathub with “flatpak install flathub com.visualstudio.code” after setting up Flatpak, or download it from Microsoft’s website.
Is the Flathub version of Visual Studio Code official?
Flathub does not mark it as verified, so Microsoft has not confirmed it as its own package (the developer name shown is “Microsoft Corporation”). Your distro’s own package is the alternative.
Is Visual Studio Code free software?
Flathub does not flag Visual Studio Code as free software, so its license may be proprietary or otherwise restricted. Our data does not include its price.
How popular is Visual Studio Code on Flathub?
Flathub counts 4,497,421 installs in total, which ranks number 9 of the 94 apps in our catalog that have a Flathub install count.