Skip to content
Start » Tools » How to install VSCode on Linux Ubuntu and Mint

How to install VSCode on Linux Ubuntu and Mint

The best way to install VS Code (Microsoft Visual Studio) on Debian-derived operating systems such as Linux Ubuntu or Linux Mint, it's through official packages.

Visual Studio Code is a lightweight source code editor that provides comprehensive and easy-to-understand support for editing, navigating, and debugging source code.

Based on a rich extensibility model and lightweight integration with existing tools. VSCode is free and based on open source (open source) for Windows, Linux and macOS.

VS Code comes with built-in support for JavaScript, TypeScript and Node.js, has a rich ecosystem of extensions (plugins) for other languages (like C++, C #, Java, Python, PHP, Go) and runtimes (like .NET and Unity).

You can easily install extensions to add new languages, languages, themes, debuggers and to connect to additional services like databases or APIs.

In this tutorial I will show you how you can install Visual Studio Code (VSCode) on Linux Mint or Ubuntu.

Installing VS Code on Linux Mint or Ubuntu

A debian installation package is provided for use on Debian based systems, with Linux Ubuntu, Linux mint, Kali Linux etc.

You can check the latest packages at VS Code Downloads page. If you want to use the wget command line to get the .deb package directly, first install it (wget) as follows.

Install wget if not present.

sudo apt-get update sudo apt-get -y install wget

However, we will be using an APT package from the Microsoft repository to install and keep our Visual Studio Code editor updated.

1. Add the Visual Studio Code repository and key

The APT repository key is required for validation of signed packages to be installed.

Add the key to the system using the commands below:

sudo apt-get update sudo apt-get install apt-transport-https curl | gpg --dearmor > microsoft.gpg sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/

2. Add APT Repository to Linux

With the APT repository key imported into the system, proceed to add the repository contents.

sudo sh -c 'echo "deb [arch=amd64] stable main" > /etc/apt/sources.list.d/vscode.list'

The contents are written to the file /etc/apt/sources.list.d/vscode.list.

3. Update APT and install VSCode

Run the APT package catalog update and then install Visual Studio Code:

sudo apt-get update sudo apt-get install code

After waiting for the installation to complete, you can run the editor by calling directly from the command line, or through the system menu:


If you want to run Visual Studio Code with a specific folder open in IDE, navigate to it via the command-line console in the terminal, and run the command code with a dot ( . ):

cd my-source-code code .

Alright, now that you've learned how to install vscode on Linux Ubuntu and Mint, hands on and lots of programming.

Leave a Reply

Your email address will not be published.

%d bloggers like this: