Does Visual Studio Code work on Linux?
Yes. Microsoft publishes an official Linux version of Visual Studio Code. It’s on Flathub (4.4M installs) and in the Arch Linux repositories.
How to install Visual Studio Code on Linux
Microsoft provides an official Linux version on its website.
Any distro: Flatpak from Flathub
The Flathub package is maintained by the community, not by Microsoft. It has been installed 4,400,829 times. 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.
flatpak install flathub com.visualstudio.codeFrom your distro’s repositories
| Distro | Version | Command |
|---|---|---|
| Arch Linux | 1.136.0 | sudo pacman -S vscode-css-languageserver |
| AUR (Arch community) | 1.102.0.r1.gc6e8ac1 | yay -S code-git |
Package names and versions from Repology. AUR packages are user-maintained; review them before installing.
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.4M 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.