> ## Content Index
> Fetch the complete content index at: https://itsfoss.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Installing Microsoft Visual Studio Code on Ubuntu and Other Linux
- URL: https://itsfoss.com/install-visual-studio-code-ubuntu/
- Published: 2015-05-01T12:30:19.000Z
- Updated: 2024-10-06T11:01:18.000Z
- Description: Microsoft’s open-source code editor, Visual Studio Code, is remarkable. Learn how to install VS Code on Ubuntu and other Linux distros.
- Author: Abhishek Prakash
- Tags: Installation 📥

Microsoft did the unexpected by releasing Visual Studio Code for all major desktop platforms, that includes Linux as well. Soon after its release, Microsoft Visual Code became one of the [best open source code editors](https://itsfoss.com/best-modern-open-source-code-editors-for-linux/). The features it provides are useful not only to web developers, but for all kinds of programmers.

I am not going to list the features of Visual Studio Code here. I presume you already know them. So, here, I am going to show you how to install Visual Studio Code on Ubuntu and other Linux distributions.

- Snap version: Snap are the universal packaging format. You can find this version in the software center. Usually, Snap applications take longer to start but they get quicker updates automatically.
- Deb version: Traditional debian package (.deb file) that you have to download from VS Code's website and then install it on your system. Newer versions are provided with system updates.

## Method 1: Install Visual Studio Code on Linux using Snap

Visual Studio Code is [available as a Snap package](https://snapcraft.io/code?ref=itsfoss.com). Ubuntu users can find it in the Software Center itself and install it in a couple of clicks.

![Stable and Testing version of VS Code Snap application in Ubuntu Software Center](https://itsfoss.com/content/images/2023/04/visual-studio-code-snap.jpg)

Visual Studio Code in Ubuntu Software Center

Snap packaging means you can install it in any Linux distribution that supports Snap packages. Make sure to [enable Snap support on your Linux distribution](https://itsfoss.com/install-snap-linux/) if you haven’t done already.

```
sudo snap install code --classic
```

![Install VS Code snap application through command line](https://itsfoss.com/content/images/2023/04/vscode-snap.svg)

Install VS Code Snap App

The installation will depend on your internet connection speed. 

### Remove VS Code Snap

You can remove VS Code installed as a snap both through software center and terminal.

Open the Software Center and browse VS Code in the “installed” apps section. Click on **remove** to uninstall it.

![Remove the VS Code Snap application through Software Center](https://itsfoss.com/content/images/2023/04/remove-vs-code-snap.png)

Remove VS Code Snap

Or, open a terminal and enter the following command, it is that easy:

```
sudo snap remove --purge code
```

## Method 2: Using the .deb/.rpm packages

Microsoft provides packages to install Visual Studio Code on Linux. Just head over to the download page of Visual Studio Code, and you’ll find the .deb and .rpm files options for the Linux platform.

[Download Visual Studio Code](https://code.visualstudio.com/download?ref=itsfoss.com)

💡

If you are running Ubuntu or any other Linux distribution based on Ubuntu such as Linux Mint, elementary OS etc., you need to opt for .deb file. .rpm is for Fedora and SUSE based Linux distributions.

![Download the deb or rpm installation files from official Visual Studio Code downloads page](https://itsfoss.com/content/images/2023/04/download-vs-code-deb-rpm.png)

Download VS Code DEB or RPM

There are options for 32-bit systems as well. If you’re not sure about that, you can read our guide to [find if your Ubuntu is 32 bit or 64 bit](https://itsfoss.com/32-bit-64-bit-ubuntu/) and then download the files accordingly.

Once downloaded, you can simply follow the method suitable to you to [install a deb file on Ubuntu](https://itsfoss.com/install-deb-files-ubuntu/) (or other Ubuntu-based distros).

Or, you can explore the right-click menu on the downloaded deb file and select open with software center. 

If you do not find the option there, select **Open with other applications** and from and next, **Software Install**.

![Right-click on the deb file adn select "Open With Software Install" to open it in Ubuntu Software Center](https://itsfoss.com/content/images/2023/04/open-vscode-deb-in-sw-center-by-right-click.png)

Open DEB File in Software Center

Now, press the “Install” button in the Software Center to install it.

![Click on "Install" button in Software Center to install the VS Code deb file](https://itsfoss.com/content/images/2023/04/press-install-in-SW-to-install-local-deb.png)

Install VS Code Deb File

**Suggested Read 📖**

[Use GDebi for Quickly Installing DEB Packages in UbuntuGdebi is a tiny little app that helps you install deb files more effectively by handling dependencies. Learn how to use Gdebi and make it the default application for installing deb packages.![](https://itsfoss.com/content/images/size/w256h256/2022/12/android-chrome-192x192.png)It's FOSSAbhishek Prakash![](https://itsfoss.com/content/images/wordpress/2015/02/Make_GDebi_Default.jpeg)](https://itsfoss.com/gdebi-default-ubuntu-software-center/)

### Remove VS Code deb/rpm app

Removing [software that was installed from a .deb](https://itsfoss.com/install-deb-files-ubuntu/) file is the same as removing any app from the Software Center.

Just go to the Ubuntu Software Center, search for the application name and click on **Uninstall** to remove it.

Alternatively, you can [use Synaptic Package Manager](https://itsfoss.com/synaptic-package-manager/) if you do not find it listed on the Ubuntu Software Center for some reason. 

![Remove VS Code application installed through DEB file using Synaptic package manager](https://itsfoss.com/content/images/2023/04/remove-vs-code-synaptic.png)

Remove VS Code Synaptic

## Bonus Tip: Removing VS Code data

VS Code keeps some data on the disk. If you reinstall it, you'll find that your extensions and some other settings are still present.

If you want to remove all traces of VS Code from the system, you should also remove these application related files.

Usually, it creates **.vscode folder in the home directory** and a f**older named Code in .config directory** in your home directory.

You delete these folders and it should remove all presence of VS Code.

## Conclusion

As a last resort, you can always build it from the source code. You can find the source code of VS Code on its GitHub page.

[Visual Studio Code Source Code](https://github.com/Microsoft/vscode/?ref=itsfoss.com)

It’s pretty easy to install Visual Studio Code on Ubuntu, thanks to Snap, Flatpak, or deb/rpm packages available.

Now that you know — what method do you prefer to install Microsoft’s Visual Studio Code on Linux?

You are welcome to let me know your thoughts in the comments below!

*If you are curious to explore alternatives and more options to code on Linux, here are some picks for you:*

[8 Best Open Source Code Editors for LinuxLooking for the best text editors in Linux for coding? Here’s a list of the best code open source code editors for Linux.![](https://itsfoss.com/content/images/size/w256h256/2022/12/android-chrome-192x192.png)It's FOSSAbhishek Prakash![](https://itsfoss.com/content/images/2023/02/modern-code-editors.png)](https://itsfoss.com/best-modern-open-source-code-editors-for-linux/)