Open In App

Install Visual Studio Code in Kali Linux

Last Updated : 06 Mar, 2024
Like Article

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 


  • Debugging
  • Syntax highlighting
  • Intelligent code completion
  • Code refactoring

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


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- | gpg –dearmor >

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

$ sudo sh -c ‘echo “deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/] 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

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


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
sudo dpkg -i ./code_1.87.0-1709078641_amd64.deb

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

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads