How to Install Visual Studio Code on Debian 10

Install Visual Studio Code on Debian 10

In this article, we will have explained the necessary steps to install and set up Visual Studio Code on Debian 10. 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 an open-source and cross-platform code editor developed by Microsoft. It includes support for debugging, embedded Git control and GitHub, syntax highlighting, intelligent code completion, snippets, and code refactoring. You can extend Visual Studio Code functionality using extensions.


  • Operating System with Debian 10
  • Server IPv4 Address with Superuser Privileges (Root Access)
  • Gnome Terminal for Linux Desktop
  • PuTTy SSH client for Windows or macOS
  • Powershell for Windows 10/11
  • Familiar with APT Commands

Install Visual Studio Code on Debian

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 software-properties-common apt-transport-https wget

Step 2. Install Visual Studio Code on the Debian system.

Import the Microsoft GPG key using the following curl command:

wget -q -O- | sudo apt-key add -

Now, execute the below command to enable the Visual Studio Code repository:

sudo add-apt-repository "deb [arch=amd64] stable main"

Once the repository is enabled, use the apt command to install Visual Studio Code using the following command below:

sudo apt update
sudo apt install code

Step 3. Accessing Visual Studio Code on Debian.

Now, you can find Visual Studio Code in the Application Menu of your Debian 10 OS. Click on the Visual Studio Code icon. When it will launch the first time by your system it will look screen like as below:

Install Visual Studio Code on Debian 10

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