How to Install VS Code on Kali Linux (Step by Step for Beginners)

beginnerSoftware Install2 min
Independently tested and verified on Nov 12, 2026. Commands reproduced exactly as run.

Prerequisites

  • A computer running Kali Linux
  • An internet connection to download the .deb file
  • Your account password, which sudo asks for during the install

This tutorial takes about 2 minutes to complete.

This guide shows how to install Visual Studio Code on Kali Linux with apt: download the .deb file, install it with one command and start it. It follows the video, and every command below is the one typed on screen, ready to copy.

Before you start

You need a computer running Kali Linux, an internet connection and your account password: the install command asks for it.

Jump to a chapter in the video: Download .deb · Install .deb · Run VS Code

Step 1: Download the VS Code .deb

Open your browser and go to code.visualstudio.com/download. Click the Debian/Ubuntu .deb download for Linux, then click Download. When it has finished, open your Downloads folder: the VS Code .deb file is there. You can close the file manager window.

The Visual Studio Code download page at code.visualstudio.com/download in the browser.

The Files app showing the Downloads folder with the code_1.145.2-1793945276_amd64.deb file selected.

Step 2: Open a terminal and go to your Downloads folder

Open a terminal and change into your Downloads folder with the first command below. Then run the second command to list the folder and see the exact name of the .deb file.

cd ~/Downloads
ls

The terminal after running cd ~/Downloads and ls, which lists the downloaded .deb file.

Step 3: Install the .deb with apt

Now install the file. Type sudo apt install ./ followed by the first letters of the file name, press Tab to autocomplete the name and press Enter. The finished command is below. Type your password when the terminal asks for it. The install adds the Microsoft APT repository for Visual Studio Code, so whenever you run sudo apt update or sudo apt upgrade, VS Code is updated to the latest stable version as well. Answer yes when it asks. When it finishes, VS Code is installed.

sudo apt install ./code_1.145.2-1793945276_amd64.deb

The terminal with the sudo apt install ./code_1.145.2-1793945276_amd64.deb command typed, ready to run.

The Configuring code dialog in the terminal asking whether to add the Microsoft apt repository for Visual Studio Code, with Yes selected.

Step 4: Start VS Code

To open it, type the command below in the terminal and press Enter. VS Code opens, so it is installed. You can also find it in your applications menu: open the menu, go to the next page and double-click Visual Studio Code.

code

Visual Studio Code open on its Welcome page after running the code command.

FAQ

Download the .deb file from code.visualstudio.com/download, open a terminal in the folder with the file, run `sudo apt install ./code_1.145.2-1793945276_amd64.deb` and start it with the `code` command.
Yes. The sudo apt install command asks for your account password; type it when the terminal asks.
The install adds the Microsoft APT repository for Visual Studio Code, so running sudo apt update or sudo apt upgrade updates it to the latest stable version.
Start it with the `code` command in the terminal, or open the applications menu and look for Visual Studio Code.

Never miss an issue

One email a week on local LLMs, DIY AI hardware, and the tools that power them. No spam — unsubscribe anytime.

Subscribe free

Products used in this tutorial

AMD Ryzen 9 9950X
cpu

AMD Ryzen 9 9950X

16-core, 32-thread AMD Ryzen 9 9950X desktop processor (Zen 5, AM5) with 5.7 GHz max boost and Radeon graphics — AMD's flagship mainstream CPU.

3 retailers
Gigabyte X870 Eagle WiFi 7
motherboard

Gigabyte X870 Eagle WiFi 7

AMD X870 ATX motherboard for AM5 with PCIe 5.0, DDR5, USB4, Wi-Fi 7 and 2.5GbE LAN — a modern foundation for Ryzen 9000-series desktop builds.

3 retailers
fanxiang S880R 1TB PCIe 4.0 NVMe SSD
storage

fanxiang S880R 1TB PCIe 4.0 NVMe SSD

fanxiang S880R 1TB PCIe 4.0 NVMe M.2 SSD with built-in heatsink — up to 7300MB/s reads and 3D TLC NAND for high-performance desktop and console storage.

2 retailers