How to Install Visual Studio Code on Ubuntu in Minutes
Visual Studio Code (VS Code) is a lightweight but powerful source code editor developed by Microsoft. It’s available for Windows, macOS, and Linux, and it includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring. This guide will walk you through the steps to install and set up Visual Studio Code on Ubuntu, allowing you to take advantage of its robust features.
Get More Information On: https://devopssaga.com/
Why Use Visual Studio Code on Ubuntu?
VS Code has become a popular choice among developers due to its extensive features and flexibility. Here are some reasons why you might want to install it on Ubuntu:
• Cross-Platform: It runs on any major platform, including Linux.
• Extensible: Supports a wide range of extensions to add functionality.
• Integrated Git: Built-in Git commands and features.
• Customization: Highly customizable with themes, key bindings, and more.
When it comes to configuring and using many programming languages on a single platform, Visual Studio Code is the perfect tool for developers and programmers alike.
Microsoft Visual Studio Code is an open-source code editor that is powered by Microsoft, as the name suggests. The end users are provided with an abundance of debugging alternatives, such as integrated Git control, syntax highlighting, code completion, code refactoring, an integrated terminal, snippets, and much more. A few other rivals in the market provide end users with a coding facility and structure similar to Visual Studio Code. How would you decide between the two, for instance, if you were to compare Visual Studio Code with Atom, its closest rival? This is where the real understanding of identification emerges.
Visual Studio Code is compatible with Linux distributions as well as Windows and macOS. Installing Visual Studio Code on Ubuntu can be done in three main ways, although the process varies according to the Linux distribution.
Ubuntu Installation Guide for Visual Studio Code1. Using the Snap package, install it using the terminal.
2. Combine Microsoft’s package repository with apt. These repositories are geared mostly towards Linux users.
3. Install the program on your PC using Ubuntu’s graphical user interface.
Using one of these three approaches, you can install Visual Studio Code on Ubuntu:
1. Using the Ubuntu Terminal to Install the VS Code Snap Package –
Snaps: What are they? These are software packages that are self-contained and contain the binary along with all the dependencies required to execute the application. Snap packages are safe and simple to update. The Linux snap package for Visual Studio Code is updated and maintained by Microsoft. Both the Snap Store and the Snap installation mechanism are packed with features that support different program installations. Snaps can be installed via Ubuntu Software or the command line.
Launch the terminal and enter the following command to begin the installation of the Visual Studio Code snap package:
sudo snap install classic code
2. Install VS Code on Ubuntu Through APT
An alternative is to use Ubuntu’s built-in package manager, apt, along with Microsoft’s repository to install Visual Studio Code. Use the official repository to install the software by following these procedures.
Step 1: Be sure to upgrade and update your current packages. Using the commands below, first update every package on your system:
sudo apt update
sudo apt upgrade –y
Step 2: Set up the dependencies for the repository. You need to install the dependencies needed to add the repository after you’ve upgraded and updated the packages. Put this command into your terminal:
sudo apt install software-properties-common apt-transport-https wget
Step 3: Open the Microsoft GPG Key. Next, import Microsoft’s GPG key using wget:
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add –
Step 4: Make the VS Code Repository accessible. Execute the following command to enable the VS Code repository:
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
Step 5: Use the apt Command to install Visual Studio Code
Use the following command to install the software package as soon as you enable the repository:
sudo apt install code –y
Upgrade the Version of Software You Currently Have
Use the update/upgrade commands as follows to update your current version of VS Code to the most recent version that is available:
sudo apt update && sudo apt upgrade –y
Your current version will be updated by the most recent release once this detects the newest versions that are available. The installed version can be verified by using the –version command after installation, as demonstrated below:
code –version
Delete the Visual Studio Code Using APT
Using the appropriate procedure makes the eradication process quite simple. To complete the task, input the following command into the terminal window:
sudo apt auto-remove code
3. Install Visual Studio Code Using the GUI
The Ubuntu GUI allows you to install Microsoft Visual Studio Code as well. The desktop environment is your next best bet if you’re not a fan of the terminal for package installation.
Open the Ubuntu Software application from the Applications menu to install Visual Studio Code. Choose the first result from your code search. Click Install after that.
After the installation is finished, you can launch Visual Studio Code directly from the Applications menu or through the terminal.
Also Read: https://devopssaga.com/how-to-install-kubernetes/
Conclusion
Installing Visual Studio Code on Ubuntu is straightforward and can significantly enhance your development experience. With its powerful features and extensive customization options, VS Code is an excellent choice for developers working on Ubuntu. Follow the steps outlined in this guide to get started and explore the vast ecosystem of extensions to make the most of your coding environment.