Install VSCode on Kali Linux – Easiest Way in 2021

There are a lot of different code editors out there, but lately, many developers have found a liking for Visual Studio Code. I personally switched over to VSCode from Atom and Sublime a while ago and I am not looking back. VSCode is such an awesome piece of software (and it’s completely free, too), that I don’t need to use anything else for my daily needs. In this tutorial, I show you how to install VSCode on Kali Linux.

Should you also happen to need assistance in installing Kali Linux on Windows – I got just the guide for you.

This article has been updated in October 2021!

This Tutorial has some related Articles!
Install WSL 2 on Windows – Complete Beginner Guide
Customizing WSL 2 and Windows Terminal
Install Kali Linux in Dual Boot with Windows
The BEST Hacking Books to learn Hacking!
Top Things to do after Installing Kali Linux

Table of Contents

Step 1 – Downloading the VSCode package

The easiest way to install VSCode on Kali Linux is by downloading the VSCode deb. package and installing it via Apt. By doing it this way, you are automatically installing the apt repository that is necessary to automatically update VSCode, which is what we want.

On your Kali machine, head over to the VSCode Downloads Page and select the .deb file to install VSCode.

Downloading VSCode on Kali Linux
Downloading VSCode on Kali Linux

The file will now be saved inside of your Downloads folder.

Step 2 – Install VSCode on Kali Linux

Once downloaded, we need to install VSCode on Kali Linux. Gladly, that’s very easy now. Open up your Kali Terminal by clicking on the icon and navigate to the Downloads folder.

cd Downloads sudo apt install ./code_amd64.deb

Make sure to select the file you have downloaded for this.

Install VSCode on Kali Linux
Install VSCode on Kali Linux

This is all that you need to do to install VSCode on Kali Linux – No importing repositories or messing around with GPG keys!

Step 3 – Starting VSCode

And that’s it already! You can now start VSCode on Kali Linux via the App menu.

Install VSCode on Kali Linux
Install VSCode on Kali Linux

Step 4 – Update VSCode on Kali Linux

VScode usually notifies you if a update is available while using the app, but since we installed it in a way that also installed the apt repository, we can simply update VSCode by using apt.

sudo apt update -y && sudo apt upgrade -y

This will also bring VSCode to the latest version.


And there you have it. That’s as easy as it gets. Now you are able to use VSCode in Kali Linux. I really enjoy working with VSCode because of its ease of use and because of its extensive extension library.

There are extensions for almost anything you can think of, from colored bracket pairs to syntax auto-completion et cetera. On top of that, it runs really fast and had never even once crashed on me. It is also fully integrated with Git, making it very easy to work with your Git repository.

Once you get used to using Virtual Studio Code, you probably will not go back to your old editor (except, your old editor is VIM of course!), but that’s a whole topic on its own.

5 thoughts on “Install VSCode on Kali Linux – Easiest Way in 2021”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.