Installation: Linux
Revision | Date | Description |
|---|---|---|
| 24.07.2024 | Init Changelog |
Introduction
See the Download Visual Studio Code page for complete list of available installation options.
By downloading and using Visual Studio Code, you agree to the license terms and privacy statement.
Debian and Ubuntu based distributions
The easiest way to install Visual Studio Code for Debian/Ubuntu based distributions is to download and install the .deb package (64-bit), either through the graphical software center if it's available, or through the command line with:
Note that other binaries are also available on the VS Code download page.
Installing the .deb package will automatically install the apt repository and signing key to enable auto-updating using the system's package manager. Alternatively, the repository and key can also be installed manually with the following script:
Then update the package cache and install the package using:
RHEL, Fedora, and CentOS based distributions
We currently ship the stable 64-bit VS Code in a yum repository, the following script will install the key and repository:
Then update the package cache and install the package using dnf (Fedora 22 and above):
Or on older versions using yum:
Snap
Visual Studio Code is officially distributed as a Snap package in the Snap Store:
You can install it by running:
Once installed, the Snap daemon will take care of automatically updating VS Code in the background. You will get an in-product update notification whenever a new update is available.
Learn more about snaps from the official Snap Documentation.
Installing .rpm package manually
The VS Code .rpm package (64-bit) can also be manually downloaded and installed, however, auto-updating won't work unless the repository above is installed. Once downloaded it can be installed using your package manager, for example with dnf:
Note that other binaries are also available on the VS Code download page.
Troubleshooting
Missing root privileges on system with GNOME
If some security idiots have decided to block and complicate the installation of essential work tools (like VSC) and are also unwilling to provide up-to-date versions of the software in the company repositories, it might be necessary to manually install the package in your home directory. To do this, follow the instructions below:
Download
.rpmpackage.Go to Download directory and run
rpm2cpio code-*.rpm | cpio -idv.Check extracted files and move it to your local
PATHdirectory (like~/.local/).Create symlink to
codebinary (it exists in extracted files atshare/code/bin/code):ln -s <path_to_binary> code.Modify
code.desktopandcode-url-handler.desktopfiles located inshare/applicationsdirectory.Change every
Execto absolute path forshare/code/codefile.Change every
Iconto absolute path forshare/pixmaps/vscode.pngfile.
Restart GNOME (
ALT+F2->r->Enterorkillall -3 gnome-shellfrom command line).
