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 PIP on Windows PIP stands for "Preferred Installer Program" or "Pip Installs Packages" and is a standard package manager for Python that enables users to install and manage additional libraries and dependencies not included in the standard Python library. To use PIP, you must install Python on your Windows machine
6 min read
How to Install YouTube App for Windows Installing the YouTube app on Windows 10 and 11 can enhance your experience with a wide range of contents. Besides, there is no as such official YouTube application available on the Microsoft Store, but you can still install YouTube apps in your Windows 10 or 11 system. This article will provide you
6 min read
Download and Install Java Development Kit (JDK) on Windows, Mac, and Linux Java Development Kit (JDK) is one of the most important tools for developers who use it to build, compile, and run Java applications. It does not matter if you are a beginner or an experienced programmer; installing JDK is the first step towards working with Java development. We can download JDK to
7 min read
How to Install Jupyter Notebook on Windows Jupyter Notebook is one of the most powerful used among professionals for data science, and machine learning to perform data analysis and data visualization and much more.If you're a Windows user and looking for different ways to install Jupyter Notebook, then this guide will help you out by using A
4 min read
How to Install Node.js on Windows Installing Node.js on Windows is a straightforward process, but it's essential to follow the right steps to ensure smooth setup and proper functioning of Node Package Manager (NPM), which is crucial for managing dependencies and packages. This guide will walk you through the official site, NVM, Wind
6 min read
How to Install WhatsApp on Linux WhatsApp Messenger is like a global chat hub, letting you send text messages, make voice or video calls, and share photos, documents, or locations securely, per WhatsApp Official. Launched in 2009 and acquired by Meta in 2014, itâs now a cornerstone of communication, with end-to-end encryption ensur
5 min read
How to Install Anaconda on Windows Anaconda is a popular open-source distribution of Python and R and is widely used in the field of data science, machine learning and scientific computing. It contains Jupyter, Sypder, etc. that are well capable of handling a large number of data sets and processes as per user's need. It helps in sim
4 min read
How to Install ReactJS on Windows: Step-by-Step Guide ReactJS has become one of the most popular JavaScript libraries for building dynamic and interactive user interfaces, powering some of the biggest websites and applications across the web. If you're a Windows user eager to dive into React development, setting up your environment properly is the firs
8 min read
How to Install and Use NVM on Windows NVM or Node Version Manager is a command-line tool that allows developers to manage multiple versions of Node.js on a single machine. This function offers the flexibility to work on different projects and versions of Node.js. In this guide, we'll walk you through the steps to install and use NVM on
3 min read
Introduction to Kali Linux Operating System is the main system software which is responsible for the flawless working of the machine. Some Operating Systems are designed for some specific purposes. Though we could use them for anything we want to, but they have some special tools or services available feasibly to its users wh
4 min read