How to Install VS Code on Zorin OS 18.1 (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 Zorin OS 18.1
  • 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 Zorin OS 18.1 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 Zorin OS 18.1, 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. Download the Debian/Ubuntu .deb file, which is saved in your Downloads folder. Open the Downloads folder to check that the Visual Studio Code .deb file is there, then close the window.

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

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

Open a terminal. Change into the Downloads folder with the first command below (the tilde is the squiggly ~ character), then run the second command to list the files 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 complete it and press Enter. The finished command is below. Enter your password and press Enter. Say yes to add the Microsoft APT repository for Visual Studio Code: it keeps VS Code up to date with the latest stable version whenever you run sudo apt update or sudo apt upgrade. Click yes.

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

When the installation is complete, type the command below and press Enter to open Visual Studio Code. You can also open it from the applications menu: go to your applications, choose all apps, scroll down and click Visual Studio Code.

code

Visual Studio Code open on its Welcome page in front of the terminal on Zorin OS.

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