Install Visual Studio Code on Kali Linux

Anyone spending a decent amount of time in Kali is going to want a GUI code editor, and they’ll probably want something a little more advanced than gedit (which is currently unmaintained as of writing). My preference is Visual Studio code, though others swear by Atom or Sublime Text.

Visual Studio Code running in Kali Linux

Since Kali is a Debian-based distribution, you can add it much as you would Debian or Ubuntu:

If you have previously installed the VSCode .deb package, you will likely get some warnings that dpkg can’t remove some directories that aren’t empty, but this won’t interfere with the operation of the program. You will get a warning each time you open it as the root user, since that’s generally not a good idea on most systems – I haven’t found a way to suppress this thus far, but maybe that’s not a bad thing.


    1. That’s fair comment – it does say not to use additional repos on the Offensive Security website, but that’s because different versions of libraries could clobber existing Kali packages. This repo contains only VS code, and since it’s an electron app, there will be no need to ship libraries with it. It’s a reasonable enough risk for me – I’ve been running this way for over a year without any issue.

Leave a Reply