How to install Visual Studio Code on Ubuntu 21.10

In this article we are going to learn how to install Visual Studio code also know as (VScode) on Ubuntu 21.10. Visual Studio Code is a lightweight source code editor which runs on desktops and is available to all operating systems out there. It comes with built in Javascript, Node.js and Typescript. One can do programming for almost languages with ease with Visual Studio Code. The languages supported are like, Go, PHP, C++, C#, Java, Python and also .NET.

Why do we like Visual Studio Code?

The reason VS code is such a nice tool is because of the following reasons:

  • It is available on all operating systems so it does not limit one on where to run the VS code, you can easily hit the ground running.
  • Vscode has a rich build-in developer tooling for example IntelliSense code completion and debugging which become handy when you don not know the complete code snippet. IT acts a guide and also lessen time to code.
  • VScode can be customized to suit your needs. You can customize every feature the way you wish and also you can add third party extensions easily.
  • VScode is an open source project. So it means you can contribute to the project development, also it means that you have a bigger community where you can ask questions whenever you are faced with problem.
  • VScode is built for the web. It includes great tools for web development such React JSx, JSON, SCSS,CSS, HTML and Less.

Related Content

Prerequisites

  • Ubuntu 21.10 workstation
  • Command line basics
  • Internet access

Table of Contents

  • Update the system
  • Install Vscode via snap
  • Launch Vscode

Install Visual Studio code

VScode can be installed either from the snap store or downloaded directly from source.

Install Visual Studio Code via Snap.

Snap packages can be installed directly from either the command line or through Ubuntu software repository.

Let us first update our system repository with the following command:

$ sudo apt update
$ sudo apt upgrade -y

After the update and upgrade is complete, we can install VScode classic into our system.

$ sudo snap install --classic code 
Output 
# sudo snap install --classic code 
code 6cba118a from Visual Studio Code (vscode✓) installed

We can start Visual Studio code with the following command:

$ code 

Conclusion

We have installed Visual Studio Code in our Ubuntu 21.10 workstation. Go ahead and configure to suite your programming needs. Consult Visual studio code documentation if you face any problem.

About Mason Kipward

I am a technology enthusiast who loves to share gained knowledge through offering daily tips as a way of empowering others. I am fan of Linux and all other things open source.
View all posts by Mason Kipward →

Leave a Reply

Your email address will not be published.