In this blog post , I have explained how to install and use visual studio code on Ubuntu systems.

What is VSCode?

Visual Studio Code is an open-source , lightweight and powerful source code editor which runs on Desktop.

It is developed by Microsoft.

VSCode can be installed on Linux , Windows and MacOs.

It comes with built-in support for languages such as Node.js , JavaScript , TypeScript , Pythin , PHP , C++ , C# , Go.

Make sure you have sudo or root privileges for the system.

Install Visual Studio Code on Ubuntu

Visual Studio code on the Ubuntu systems can be installed in many ways.

METHOD 1: Installing from Official Website using .deb package

Downloading Visual Studio Code from the Official Website , You can download the VS Code from the below link.

As This article covers the installation of VS Code on the Ubuntu operating systems , I will download .deb package.

visual studio code
visual studio code

After the package is downloaded , Open the Linux terminal and GO the folder where the .deb package is downloaded.

And run the below command to install the package.

sudo dpkg -i code_1.47.2-1594837870_amd64.deb
visual studio code

After the installation is completed , We can launch the VS Code in multiple ways.

simply run code from the terminal to launch the VS Code.


Also you can run this command to check the version of VS Code installed on the system.

code --version

Or you can search for Visual Studio code from the Activities.

visual studio code

After the application is launched , You can find the following page.

visual studio code

Lets try another method of installing VS Code on the system.

Before that , To remove the existing visual studio code application from the system , Run the below command.

sudo dpkg -r code

METHOD 2: Installing using Snap

Snap is a software deployment and package management system developed by Canonical for the Linux operating system.

VS Code can be installed using Snap,If you don’t have snap already installed on your system , Install it using this command.

sudo apt-get install snapd

And then install VS code using the following command.

sudo snap install code --classic
visual studio code

Now you can install extension and configure VS Code as per your requirement.

Exploring VS Code

After the VS Code is installed and launched on the Ubuntu system , You can start working on it.

Lets say , You want to create python programs and execute it.

Click Extensions icon in the Left navigation pane and search for python.

visual studio code

Click Install to install the python extension on the VS Code.

visual studio code

Now Lets go ahead and create python file.

To create a new file , Press Ctrl + N and then Ctrl+S to save the file , Save it with .py extension.

After that , It will ask us to install pylint . Pylint is a source-code, bug and quality checker for the Python programming language.

After writing the code , Click the Run icon.And you will get the results on the terminal.

visual studio code

Same way , We can use multiple supported programming languages and test the code.

To search for string within the file , Press Ctrl + F.

To find and replace the string , Press Ctrl + H

visual studio code

Hope you find this article helpful.

We have learnt to install and use visual studio code on the ubuntu operating system.

Thanks for reading this article.

Please do check out my other articles.