

Install the Visual Studio Code package when the apt repository has been made available: sudo apt install code Sudo apt install software-properties-common apt-transport-https wgetĮmploying the wget command shown below, import the Microsoft GPG key: wget -q -O- | sudo apt-key add -Īdd the following to the Visual Studio Code repository to activate it: sudo add-apt-repository "deb stable main" Run the following command as a user with sudo permissions to update the package index and install the necessary dependencies: sudo apt update Take the following actions to install it: The official Microsoft Apt repositories include Visual Studio Code. The Visual Studio Code package will be automatically updated in the background each time a new version is made available. Open Ubuntu Software, look for "Visual Studio Code," and install the program if you prefer using a GUI. Your Ubuntu computer has Visual Studio Code installed. Open your terminal (Ctrl+Alt+T) and type the following command to install the VS Code snap: sudo snap install -classic code Snap packages may be set up using either the Ubuntu Software program or the command line. Snaps have a bigger disc footprint and a slower startup time for applications than regular deb packages. Snap packages are safe and simple to update.


Snaps are complete software packages that include the binaries and all necessary dependencies to launch a program. Microsoft distributes and maintains the snap package for Visual Studio Code. Install Visual Studio Code as a Snap Package In this tutorial, we will explain two ways of installing Visual Studio Code on Ubuntu 20.04. Cross-platform Visual Studio Code is accessible on Windows, Linux, and macOS. It features an integrated terminal, code refactoring, syntax highlighting, code completion, embedded Git control, built-in debugging assistance, and snippets.

Microsoft created Visual Studio Code, a potent open-source code editor.
