This is a step by step beginner’s guide shows how to install VS Code IDE and keep it up-to-date in Ubuntu 22.04, Ubuntu 24.04, Ubuntu 25.04 using 3 different ways.
Microsoft provides official code packages for Linux through native .deb (for Debian/Ubuntu), .rpm (for Fedora/SUSE), and universal Snap package run in sandbox.
For choice, there’s also a community maintained Flatpak package which also runs in sandbox.
So, there are 3 common ways to install this IDE in your Ubuntu Desktop!
Code 1.36, the June 2019 release of Visual Studio Code, was released. The new release has updated to Electron 4.x, means it will no longer run on Linux 32-bit.
VS Code 1.36 release highlights:
Context menu for the status bar to hide / show individual entries.
Indent guides now available in File Explorer, Search view, Debug views, etc.
Select Default Shell command for Mac OS and Linux.
Control the order of task and subtask execution.
New debug command Jump to Cursor
New setting controls whether word wrap is enabled in the Debug Console.
New Java installer.
New extension integrates JS/TS nightly builds.
Remote Development (Preview) improvements
How to Install VS Code 1.36 in Ubuntu:
You can either download and click install the Ubuntu .deb from VS code website:
Or install the official Snap (containerized software package) from Ubuntu Software:
For Ubuntu 16.04, the snap package is not integrated into Ubuntu Software.
Open terminal (Ctrl+Alt+T) and run command to install snapd first:
sudo apt-get install snapd
Then install the VS Code IDE via command:
sudo snap install code --classic
Uninstall:
Depends on your system edition, remove VS Code either via Software Center or run command in terminal:
MicroSoft and Canonical (the company behind Ubuntu) finally announced the official Snap package of Visual Studio Code IDE.
Which means you can install VS Code easily from Ubuntu Software and keep it always up-to-date automatically, though the old Snap package maintained by an independent developer was available for nearly two years.
4th April 2019, London, UK – As of today, Microsoft Visual Studio Code is available for Linux as a snap, providing seamless auto-updates for its users. Visual Studio Code, a free, lightweight code editor, has redefined editors for building modern web and cloud applications, with built-in support for debugging, task running, and version control for a variety of languages and frameworks.
Snaps are containerised software packages designed to work across cloud, desktop, and IoT devices. They work natively on most popular Linux distributions and feature automatic updates and rollback functionality, enhanced security, and greater flexibility for developers working within Linux environments.
Install VS Code via Snap in Ubuntu 18.04 / Higher:
Simply open Ubuntu Software, search for and install visual studio code:
Install VS Code via Snap in Ubuntu 16.04:
For Ubuntu 16.04, the snap packages are not integrated in Ubuntu Software.
Open terminal (Ctrl+Alt+T) and run command to install snapd first:
sudo apt-get install snapd
Then install the VS Code IDE via command:
sudo snap install code --classic
Uninstall:
Depends on your system edition, remove VS Code either via Software Center or run command in terminal: