How to install Visual Studio Code in Ubuntu?
Install linux visual studio code – If you are a programmer new in linux, you have just landed on the right article. We know that Visual Studio Code has become a favorite code editor inthe world, in addition to sublime text and atom.
Doing programming in linux is the right choice, it can run smoothly without any problems. I have tried it.
Let’s do an installation based on Debian and Ubuntu based distributions. For those of you who use Debian or its derivatives such as Ubuntu, Linux Mint, Pop Os, MX Linux, ZorinOS, ElementaryOS, Deepin, Parrot OS, and many more, there are 3 ways:
- Using .deb file
- Using script commands
- Via Snapcraft
- Via Flatpak

Using .deb File
This is the easiest way to install Visual Studio Code on your Debian and Ubuntu variant. The first step, you have to download the .deb file . Click the button below:
After that, please open a terminal and use the following command:
sudo apt install ./<file>.deb
# If you're on an older Linux distribution, you will need to run this instead:
# sudo dpkg -i <file>.deb
# sudo apt-get install -f # Install dependencies
Once the .deb package is installed, it will automatically install the apt repository so you will get automatic updates when the latest packages are available.
Using Script
This is a full command, without downloading files. If you like this method, please open a terminal and use the following command:
# install the apt repository and signing key to enable auto-updating:
sudo apt-get install wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
rm -f packages.microsoft.gpg
# Then update the package cache and install the package using:
sudo apt install apt-transport-https
sudo apt update
sudo apt install code # or code-insiders
Vis Snap
Visual Studio Code is also available on Snapcraft, you can see here. If the linux distro you are using has snap installed, please open a terminal and use the following command:
sudo snap install --classic code # or code-insiders
However, using this snap, usually the size of the file to be downloaded is larger than the .deb file.
Via Flatpak
If you want to install via flatpak, you can click here. usually the size of the file to be downloaded is larger than the .deb file.
Hopefully this can help you in installing visual studio code on linux ubuntu and debian variants.
1 comment