How to Install Visual Studio Code in Kali Linux: The Ultimate Guide

Discover how to install and harness the power of Visual Studio Code for your coding projects.


Mwenda Kelvin (Chief Editor)

1/2/20243 min read

Visual Studio Code Logo (Credit: code.visualstudio)

Visual Studio Code, commonly known as VS Code, has ended up being the editor of choice for numerous developers due to its lightweight nature, broad plugin environment, and powerful features. On the off chance that you are a Kali Linux user looking to enhance your coding experience, installing Visual Studio Code on your system could be an extraordinary way to boost efficiency and streamline your development workflow. In this blog post article, are two step by step guides/ways of installing Visual Studio Code in your Kali Linux environment.


1. First and foremost before proceeding with the installation, it is essential to ensure that your Kali Linux system is up-to-date by opening the terminal and running the following commands as shown in the screenshot below:

The commands in the above screenshot will update and upgrade the system's package repositories and installed packages to the latest versions, ensuring compatibility and stability during the VSCode (Visual Studio Code) installation process.

2. Once the system is updated and upgraded, head on to download the Visual Studio Code package suitable for your Kali Linux architecture whereby there are two options for downloading Visual Studio Code:

(i) Download it from the Official Website by navigating to the official Visual Studio Code website at then click on the "Download for Linux" button which will download a .deb package to the system.

(ii) Download it through the Command Line using wget by running the following command as seen from the screenshot below in order to download the .deb package:

Command to Download VSCode From Website Using Terminal (Credit: Linux)

3. Once the package is downloaded, navigate to the directory where it was saved then proceed to install Visual Studio Code using the dpkg command in the terminal as seen in the screenshot below:

Command to Update Linux System (Credit: Linux)

Command to Install VSCode (Credit: Linux)


1. Just like the first guide, ensure the system is up to date by updating and upgrading it then type the following command then enter password if prompted in order to install VSCode as shown in the screenshot below:

Command to Upgrade Linux (Credit: Linux)

If by any chance you encounter any dependency issues during the installation process, you can resolve them by running the following command shown in the screenshot below:

Command to Resolve Dependencies Issues During Installation (Credit: Linux)

Alternatively, you can find Visual Studio Code in the system's application menu and launch it from there. Also one can install extensions whereby Visual Studio Code offers a wide range of extensions that enhance its functionality for different programming languages and development workflows. One can explore and install extensions directly from within the editor by navigating to the extensions view (Ctrl+Shift+X).

In conclusion, with its intuitive interface and powerful features, Visual Studio Code is ready to help you tackle your coding projects with ease. Whether you're a beginner or an experienced developer, Visual Studio Code's versatility and extensibility make it an invaluable tool in your development arsenal. Happy coding!

Command to Directly Install VSCode (Credit: Linux)

Once the installation is complete, launch Visual Studio Code from the terminal by typing the following command as shown in the screenshot below:

Command to Launch VSCode (Credit: Linux)