How to Install Visual Studio Code on Debian 11

Install Visual Studio Code on Debian 11

In this article, we will have explained the necessary steps to install Visual Studio Code on Debian 11. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Visual Studio Code is a free and open-source cross-platform code editor developed by Microsoft that works with many different programming languages, including Python and JavaScript. It has built-in debugging support, embedded Git control, syntax highlighting, code completion, integrated terminal, and many more. Visual Studio Code is free and available on your favorite platforms such as Linux, macOS, and Windows.

Install Visual Studio Code on Debian 11

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

sudo apt update
sudo apt upgrade
sudo apt install curl apt-transport-https

Step 2. Install Visual Studio Code on Debian system.

  • Install Visual Studio Code from the official repository

Microsoft provides VS Code package through its official repository. Now, add the Microsoft Visual Studio Code repository to your system:

echo "deb [arch=amd64 signed-by=/usr/share/keyrings/ms-vscode-keyring.gpg] https://packages.microsoft.com/repos/vscode stable main" | sudo tee /etc/apt/sources.list.d/vscode.list

Download and import the Microsoft signing GPG key:

curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/ms-vscode-keyring.gpg

Install the Visual Studio Code package with:

sudo apt update
sudo apt install code

Step 3. Accessing Visual Studio Code on Debian.

Once complete step-by-step process installation, VS Code can be launched from the command line by typing code or by clicking on the VS Code icon (“Applications -> Programming -> Visual Studio Code”). When you start VS Code for the first time, a window like the following will be displayed:

Install Visual Studio Code on Debian 11

That’s all you need to do to install the VS Code on Debian (Bullseye). I hope you find this quick tip helpful. For further reading Visual Studio Code on Debian’s system, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.