How to Install VS Code on Linux Mint in 5 Easy Steps

Effortlessly install VS Code on Linux Mint with our step-by-step guide. So, follow along and have it running in no time.

Visual Studio Code (VS Code) is a popular code editor developed by Microsoft that is available on multiple platforms, including Linux. It is highly customizable and has a wide range of features, making it an excellent choice for developers.

Its key features include syntax highlighting, built-in debugging support, embedded Git control, code completion, an integrated terminal, snippets, and code refactoring.

This guide will walk you through installing Visual Studio Code on Linux Mint from the official Microsoft VS Code repository. So, whether you’re a beginner or an experienced user, these instructions will help you get up and running with VS Code on your Linux Mint system in no time.

Install Visual Studio Code on Linux Mint

1. Install Prerequisites

Before we begin the installation, we must first install some packages that will be required to be available on our Linux Mint system for the next steps. To accomplish this, open the command prompt and type:

sudo apt install software-properties-common apt-transport-https wget gpg
Install prerequisites
Install prerequisites

2. Import Microsoftโ€™s GPG Key

To ensure that the packages we receive to install the Visual Studio Code are genuine, we should download and import the Microsoft signed GPG keys on your Linux Mint system.

To do so, type the following commands:

wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpgCode language: JavaScript (javascript)

The commands will produce no output.

3. Add Microsoftโ€™s Visual Studio Code Repository

After importing the GPG keys, you must add the official Microsoft Visual Studio Code repository to your Linux Mint system. This implies that the update package will be made available with the rest of our system’s regular updates if a new version is released.

To accomplish it, type the command shown below.

sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'Code language: JavaScript (javascript)
Add Microsoftโ€™s VS Code repository
Add Microsoftโ€™s VS Code repository

As you can see, the command will not produce any output.

4. Run System Update

Before installing VS Code on your Linux Mint system, you should update the packages list. So, run the below command to update the APT repositories index.

sudo apt update
Updating the repositories index
Updating the repositories index

As you can see, your new Microsoft Visual Studio Code repository is now available and ready to be used.

5. Install VS Code on Linux Mint

Everything is already prepared for the actual installation. Now, to install VS Code on your Mint system, run the following commands:

sudo apt install code
Installing VS Code on Linux Mint
Installing VS Code on Linux Mint

That’s all! You can start using VS Code by launching it from the “Start Menu,” “Programming,” and picking “Visual Studio Code.”

Run Visual Studio Code on Linux Mint
Run VS Code on Linux Mint

When you start VS Code for the first time, a window like the following will appear:

VS Code runs on Linux Mint
VS Code runs on Linux Mint

Conclusion

Installing VS Code on Linux Mint is a straightforward process that involves adding the Microsoft GPG key, adding the official VS Code repository, and updating the local package cache. Once these steps are completed, users can easily install VS Code using the APT command. Now, you can take advantage of the powerful features and functionality offered by VS Code to enhance your coding experience.

If you have any questions, please leave them in the comments section below. To learn more about Visual Studio Code, visit its official documentation page.

Bobby Borisov

Bobby Borisov

Bobby, an editor-in-chief at Linuxiac, is a Linux professional with over 20 years of experience. With a strong focus on Linux and open-source software, he has worked as a Senior Linux System Administrator, Software Developer, and DevOps Engineer for small and large multinational companies.

Think You're an Ubuntu Expert? Let's Find Out!

Put your knowledge to the test in our lightning-fast Ubuntu quiz!
Ten questions to challenge yourself to see if you're a Linux legend or just a penguin in the making.

1 / 10

Ubuntu is an ancient African word that means:

2 / 10

Who is the Ubuntu's founder?

3 / 10

What year was the first official Ubuntu release?

4 / 10

What does the Ubuntu logo symbolize?

5 / 10

What package format does Ubuntu use for installing software?

6 / 10

When are Ubuntu's LTS versions released?

7 / 10

What is Unity?

8 / 10

What are Ubuntu versions named after?

9 / 10

What's Ubuntu Core?

10 / 10

Which Ubuntu version is Snap introduced?

The average score is 68%