Home Linux Visual Studio Code - A Free and Open Source Code Editor for...

Visual Studio Code – A Free and Open Source Code Editor for Ubuntu

Visual Studio Code is one of the best and famous code editor available in the market. Microsoft has developed this cross-platform code editor which is based on Atom Text editor; another favorite Linux text editor. As I have said, it’s a multi-platform code editor that runs on Linux, Windows, MacOS, etc. VSCode offers a well-integrated plugin ecosystem with thousands of ready-made plugins available. As it’s based on Atom, so it comes with some preinstalled default plugins also.

VS Code editor is much faster without any real lags using Electron, Node, and HTML/CSS. It offers a few unique features like a debugging system, IntelliSense typeahead completion, and Git integration which makes it stand apart from others. Visual Studio Code is a full packed development editor which supports a wide range of programming languages and platforms like C or C# to a latest modern platform and programming languages like Node.js and Go.

VS Code

Personally, I don’t like the Microsoft product as this company has not done anything better for the open source platform. But in the case of VS code development, MS has shown a significant contribution to the developer. Moreover, now the company has GitHub in his pocket which is the most popular open source software development platform.

The Key Highlights in VS Code 1.26


  • Breadcrumbs – Breadcrumb navigation lets you jump to symbols and files in your workspace.
  • Quick Fixes from Problems panel – Apply code fixes while reviewing warnings and errors.
  • User setup on Windows – Elevation no longer required during Windows setup.
  • Terminal column selection – Alt+click to select blocks of text in the integrated terminal.
  • Add all missing imports – Single action to add all missing imports in a JavaScript/TypeScript file.
  • JSX tag completion – Work with JSX tags in JavaScript/TypeScript just like you do in HTML.
  • Better JS/TS error reporting – Concise, clear messages with relevant source code links.
  • Improved extension search – Filter Marketplace queries to find the extensions you want.
  • Extension Pack management – Manage Extension Packs as a single unit or by individual extension.
  • Preview: Settings editor – Rich settings description display, “Table of Contents” tracks scrolling.

To see all the significant changes and improvements, check the release note.

Install Visual Studio Code in Ubuntu Linux


In this quick tutorial, I will show you how to install Visual Studio Code in Ubuntu Linux. I will be trying to cover all the ways that you can follow. Remember, this article is for the beginner users who just came into the world of Linux and want to install this best code editor.

Method – 1: Using the Software center, Snap, and Flathub Store


This process is the easiest way to install any software in Linux. You can install VS Code by searching distro specific software center or from the Snap store or Flathub app store. Check how to install software in Linux using Snap store or Flathub/flatpak, in case you don’t know. If you are not comfortable with the app store, then use the following command to install Visual Studio Code.

a. Flatpak Command Code

Install:

flatpak install flathub com.visualstudio.code

Run:

flatpak run com.visualstudio.code

b. Snap Command Code

sudo snap install vscode --classic

Remember, Official distro specific software center or Snap or Flathub app store takes a bit of time for updating the repositories into the latest version. In this case, you can use official or unofficial PPA or .deb packages for getting the new version.

Method – 2: Using Official “.deb” Package


In this process, first, you have to download the official .deb package for Debian or Ubuntu system.

Download VS Code “.deb”

Now you can install it by using Gdebi package manager or follow the process on how to use “.deb” packages in Ubuntu. Or else, you can run the following command:

sudo dpkg -i ~/Downloads/code_*.deb; sudo apt -f install

This simple command will install Visual Studio Code editor in Ubuntu. Add the below repository and GPG keys, if you want to get latest updates through software center.

sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg

sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg

How To Remove Visual Studio Code


You can use the distro-specific software center or synaptic package manager for removing the software. Or else, run the following command:

sudo apt-get remove --autoremove code

To remove the PPA, Follow “Software & Updates >> Other Software tabs.”

Remove the PPA from Software and Update Utility
Remove the PPA from Software and Update Utility

Note: The features mentioned here are not all-inclusive. The features mentioned are compiled either from their respective official websites or from my personal experience using them.

Is this tutorial on VSCode helpful? If so, please take a moment to share it on your social network. Let me know your experience and suggestions in the comment below.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Post

50 Useful and Simple IPtables Rules for Linux Administrator

One of the main reasons behind the immense popularity enjoyed by Linux is its sheer prowess in networking. Linux...

Linux Shell Roundup: 15 Most Popular Open Source Linux Shells

Unix systems have captivated the world since its inception in the 70s. One of the fundamental features that helped...

Top 20 Most Remarkable IoT Applications in Today’s World

In the nearest future, probably we are going to live in a world with connected devices — the curiosity...

Top 20 Best Python IDE for Linux. Some of Them are Open Source

Python is a programming language. User can apply it for general purposes to design program from the backend web...

Top 20 Funny Steam Games For Kids To Play Right Now

There are ample of funny steam games for kids available on the store for the Linux system. A couple...

Most Talked Post

Linux or Windows: 25 Things You Must Know While Choosing The Best Platform

Choosing the best platform - Linux or Windows is complicated. Because both the system is versatile and capable of...

Most Stable Linux Distros: 5 versions of Linux We Recommend

At the very beginning, I would like to mention why the term ‘Stable’ comes in relation to Linux OS...

15 Best Things To Do After Installing Linux Mint 19 “Tara”

Linux Mint is one of the best Linux distros for newcomers, especially who comes from other Operating Systems like...

Linux Mint vs Ubuntu: 15 Facts To Know Before Choosing The Best One

Ubuntu and Linux Mint are two popular Linux distros available in the Linux community. Ubuntu is a derivative of...

Top 5 Best Lightweight Linux Distros To Boost Up Your Old Computer

So here comes the million dollar question, why does anyone use Lightweight Linux distros? While all the modern Linux...

Editors' Pick

Best 20 Linux Security Tools: Recommendation from the Linux Experts

It doesn’t matter which operating system you use, you...

An Ultimate List of Linux Blogs for Beginners and Professionals

Linux is an open source versatile operating system. If...

Best Linux Code Editor: Top 10 Reviewed and Compared

Coding is great fun. You can make useful and...

Top 5 Best Linux Distros For Laptop: Choose The Best One

“ Best Linux Distros For Laptop ” this very...

Top 15 Best Git Clients for Linux in 2019

As a Linux user, you need to update software...