Install Visual Studio Code in Kali Linux (original) (raw)

Last Updated : 23 Jul, 2025

Visual Studio Code is an open-source, cross-platform source-code editor developed by Microsoft. It is used by developers for developing software and writing code using programming languages such as C, C++, Python, Go, Java, etc. Visual Studio Code employs the same editor used in Azure, DevOps

**Features

In this article, we will show you the installation process of the **Visual Studio Code on Kali Linux (or other Ubuntu/Debian-based Linux).

Installation

To install Visual Code Studio on Debian-based systems, you have to enable the VS Code repository and install the Visual Studio Code package using the apt package manager.

**The steps for installing Visual Code Studio is as follows:

**Step 1: First, you have to update your system using the following command:

$ sudo apt update

**Step 2: Now, after your system is updated, install the required dependencies for Visual Code Studio by using the following command:-

$ sudo apt install software-properties-common apt-transport-https

**Step 3: Next, download the repository using the wget command, import Microsoft’s GPG key, and add it to your kali source list by using the following commands:-

$ wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg

$ sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/

$ sudo sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode/ stable main" > /etc/apt/sources.list.d/vscode.list'

**Step 4: Once you’ve done with the above steps, next you have to update the system and install **Visual Studio Code by running the following commands:-

$ sudo apt update $ sudo apt install code

**Step 5: Once the installation of **Visual Studio Code is completed, go search for Visual Code Studio from the application manager and you can see it over the screen like this:-

Alternative Solution

Step-1: Go to https://code.visualstudio.com/download

Step-2: Choose a .deb package as kali is debian based distribution based on your architecture (see below image) :-

Screenshot-from-2024-03-03-00-27

Download File

Step-3 : Once its downloaded, open that path in terminal and run the following command :- (Your version can vary)

sudo apt install ./code_1.87.0-1709078641_amd64.deb OR sudo dpkg -i ./code_1.87.0-1709078641_amd64.deb

Congrats! Now you can open it directly from app menu.