As a developer, your life is easier when you have your favorite tools. Now that Ubuntu 24.04 is around, one to-do involves installing all the developer tools you require, including Microsoft’s Vs Code.
Ubuntu supports vscode, and there are different options you can use to quickly install vscode on Ubuntu 24.04 and start using it for your coding. Read on as this post shares three practical installation methods for any user.
How to Install vscode on Ubuntu 24.04
It’s undeniable that vscode is a favorite code editor among developers. That doesn’t come as a surprise considering the numerous options that vscode offers, from plugins to version control. All these features are only accessible after you install vscode.
You can install vscode via a command line or GUI. We’ve covered the different options below. This way, go through the options and see which suits your case.
Method 1: Installing vscode via Snap
Ubuntu uses the App Store, where you can source its snap packages and install them. Vs Code is available as a snap package, and the benefit of installing it this way is that you don’t need to install its dependencies separately.
A snap bundles all packages. It requires ensuring that once you run the install command, vscode will install alongside its dependencies, and only one command is needed.
Although installing vscode as a snap is possible, you won’t get its latest version. Nonetheless, you will get a stable version and only need to execute the following command.
$ sudo snap install --classic code
You will get a window showing the progress bar for the running process, from downloading the snap package to installing it.
Method 2: Install vscode on Ubuntu 24.04 via Snap GUI
Our first method explains how to source vscode from the App Center and install it via the command line. Even for this method, we are still sourcing vscode from the snap store but using the GUI approach. Use the below steps to get it done.
Step 1: On your Ubuntu 24.04, search for App Center from your applications and tap on it to open it.
Step 2: On the App Center window, click on the Search icon at the top and type vscode and press the search button.
Step 3: Once vscode appears in the search results, tap on it. Next, click the Install button.
Step 4: Authenticate the installation by entering your password when prompted.
Step 5: That’s it. Vs Code will start installing, and a progress bar will show the progress. Once it completes installing, you can start using vscode for your code.
Method 3: Install vscode on Ubuntu 24.04 via APT
APT is a Ubuntu package manager that allows users to source packages from the Ubuntu repository and other repositories, install them, and manage them. Even when you want to install vscode, it’s possible to use APT.
However, Ubuntu 24.04 doesn’t come with vscode in its repository. You can verify this by trying to install vscode via APT using the following command.
$ sudo apt install code
Notice the error we get: It only shows that vscode can be installed as a snap package, which we already did.
The solution is to add the vscode repository to your Ubuntu 24.04 repository and then install it. To do this, let’s follow the below steps.
Step 1: The first step is to update your Ubuntu 24.04 package list to prepare it to receive the vscode repository. Run the following update command.
$ sudo apt update
Step 2: We must install some required dependencies to ensure the installation runs softly.
$ sudo apt install software-properties-common apt-transport-https wget -y
Step 3: Microsoft offers a GPG key to help verify the vscode code repository before you add it. Source the GPG key and add it with the below command.
$ wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
Step 4: It’s time we added the vscode repository using the below command.
$ sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
After running the command, different prompts will appear. Confirm them to complete adding the repository.
Step 5: That’s it. You can now install vscode on Ubuntu 24.04 using the Apt command.
$ sudo apt install code
Conclusion
Vs Code is a commonly used code editor, and if you recently upgraded or installed Ubuntu 24.04, knowing how to install it easily saves you time. Luckily, this post has shared three approaches you can follow depending on your preference. Happy coding!
More...
Categories
Collapse
Article Tags
Collapse
There are no tags yet.
Latest Articles
Collapse
-
by Kasimba
by George Whittaker
Introduction
Qualitative data analysis (QDA) is a cornerstone of research across various fields, from social sciences to marketing. It involves uncovering patterns, themes, and meanings within non-numerical data such as interviews, focus groups, and textual narratives. In this era of digital tools, MAXQDA stands out as a premier software solution for QDA, empowering researchers to organize...-
Channel: Articles
11-21-2024, 11:31 PM -
-
by Kasimba
by german.suarez
Introduction
In today’s fast-paced digital landscape, ensuring the availability and performance of applications is paramount. Modern infrastructures require robust solutions to distribute traffic efficiently and maintain service availability even in the face of server failures. Enter HAProxy, the de facto standard for high-performance load balancing and failover.
This article...-
Channel: Articles
11-21-2024, 03:00 PM -
-
by KasimbaArch Linux hasn't had a license for any package sources (such as PKGBUILD files) in the past, which is potentially problematic. Providing a license will preempt that uncertainty.
In RFC 40 we agreed to change all package sources to be licensed under the very liberal 0BSD license. This change will not limit what you can do with package sources. Check out the RFC for more on the rationale and prior discussion.
Before we make this change, we will provide contributors with...-
Channel: Articles
11-19-2024, 09:21 AM -
-
by Kasimba
by George Whittaker
Introduction
In the world of cybersecurity and software development, binary analysis holds a unique place. It is the art of examining compiled programs to understand their functionality, identify vulnerabilities, or debug issues—without access to the original source code. For Linux, which dominates servers, embedded systems, and even personal computing, the skill of binary analysis is...-
Channel: Articles
11-18-2024, 07:10 PM -
-
by KasimbaDebian and Ubuntu are two popular Linux distributions. In this deep dive we will guide you on the key differences between them from perspective of both corporate enterprise and personal productivity or pleasure usage. After reading this blog post you should be in a better position to decide to select Ubuntu or Debian.
Stewardship, Licensing, Community and Cost
Where as Debian is 100% fully committed to free software as defined by the Debian Free Software Guidelines, Ubuntu is created...-
Channel: Articles
11-17-2024, 08:30 PM -
-
by Kasimba
by George Whittaker
Introduction
In the digital age, data loss is a critical concern, and effective backup and recovery systems are vital for any Debian system administrator or user. Debian, known for its stability and suitability in enterprise, server, and personal computing environments, offers a multitude of tools for creating robust backup and recovery solutions. This guide will explore these solutions,...-
Channel: Articles
11-13-2024, 05:30 PM -