How to Install Visual Studio Code on Ubuntu 24.04 LTS
In this tutorial, learn how to install Visual Studio Code (VS Code) on Ubuntu 24.04 LTS. Visual Studio Code is a powerful, open-source code editor developed by Microsoft, widely used by developers worldwide. Follow along as we walk you through the installation process step-by-step.
Commands
sudo apt install wget gpg apt-transport-https
wget qO htt://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor (part removed replace) packages.microsoft.gpg (part of https removed replace)
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] htts://packages.microsoft.com/repos/code stable main" | sudo tee /etc/apt/sources.list.d/vscode.list (part removed replace) /dev/null (part of https removed replace)