Skip to content
Related Articles

Related Articles

Improve Article

Install Visual Studio Code in Kali Linux

  • Last Updated : 17 Jun, 2021
Geek Week

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:-

My Personal Notes arrow_drop_up
Recommended Articles
Page :