Install Visual Studio Code via Official Snap in Ubuntu 18.04

Last updated: April 8, 2019

Visual Studio Code IDE

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:

sudo snap remove code

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: https://ko-fi.com/ubuntuhandbook1

One response to Install Visual Studio Code via Official Snap in Ubuntu 18.04

  1. Sabyasachee Baruah April 14, 2019 at 1:32 am

    I installed via snap, but still I get a message to migrate whenever I open visual studio code? Am I doing something wrong, or is this expected.