Install Visual Studio Code in Kali Linux
Last Updated :
06 Mar, 2024
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
- 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).
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) :-

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.
Similar Reads
How to Install Kali Linux in VirtualBox?
Dual Booting a Windows Laptop with Kali Linux, Though increases the speed and efficiency of the OS, but we can not switch between Windows and Kali Linux instantly. To do so, we will have to install Kali Linux in Virtual Box or any other hypervisor. So, what is a hypervisor? Refer to this article Hyp
5 min read
How to install Virtual Box in Kali Linux
We all have seen that we find lots of installation walkthroughs about how to install a virtual box in windows and run kali Linux on that. But in this installation guide, we are going to show you how you can install Virtual box in the Kali Linux Operating system. Let's start. How to install Virtual B
2 min read
How to Install Visual Studio Code in Red Hat Linux
In this post, we will see How to Install Visual Studio Code in Red Hat Linux. Visual Studio Code (VSCode) is an important, open-source law editor that has gained immense fashionability among inventors for its inflexibility, expansive extension library, and integrated development terrain( IDE) featur
5 min read
How to Install Kali Linux VirtualBox Image?
Kali Linux is considered as the best perpetration testing Linux distribution as it comes with every important tool pre-installed in it. If you have a spare system you can directly install Kali into it, but if you plan to use it in a virtual environment then the best and safest method would be to use
2 min read
How to install Docker in Kali Linux?
Docker is a powerful tool that allows you to automate the deployment of applications inside lightweight containers. If you're using Kali Linux, setting up Docker can greatly enhance your ability to manage and deploy various applications securely and efficiently. This article will walk you through ho
3 min read
How to install pgadmin4 in Kali Linux
pgAdmin is Graphical Interface for PostgreSQL which is a  very popular and feature-rich Open Source administration and development platform. While working with  PostgreSQL we will often need a graphical interface for database management so that we can easily connect our code with the PostgreSQL data
2 min read
How to Install JDK in Linux?
Java is a very popular general-purpose programming language, which is very close to flow Oop's theory and can run independently on any platform, but its run time environment is dependent on the platform the JVM (Java Virtual Machine) is also known as. Which first interprets Java file byte code and b
2 min read
Tool-X - Hacking Tool Installer in Kali Linux
Tool-X is a free and open-source tool written in python that is available on GitHub. Tool-X is used by security researchers and pen-testers in the early stages of reconnaissance and pen-testing. It is an installer framework for Kali Linux that has approximately 300 tools available on its menu. It wi
2 min read
Installation of Wpscan Tool in Kali Linux
Wpscan (WordPress vulnerability Scanner) is a black box WordPress vulnerability scanner. Wpscan is used to scan remote WordPress installations or websites to find security issues. WordPress can also be used to enumerate WordPress plugins and themes and brute-force logins. Approximately 35% of the in
2 min read
How to Install Kali Linux in VirtualBox: Using Pre-built VM?
Kali Linux is a powerful and versatile operating system designed for access testing and security monitoring and can be installed in a variety of ways. Although many users choose to install Kali Linux using an ISO image, this article will walk you through the installation process using a pre-installe
4 min read