How to install Visual Studio Code on Ubuntu 20.04 Desktop

The objective of this tutorial is to install Visual Studio Code on Ubuntu 20.04 Desktop.

In this tutorial you will learn:

  • How to install Visual Studio Code
  • How to start Visual Studio Code

How to install Visual Studio Code on Ubuntu 20.04 Desktop

How to install Visual Studio Code on Ubuntu 20.04 Desktop

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Installed Ubuntu 20.04 or upgraded Ubuntu 20.04 Focal Fossa
Software Visual Studio Code
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

How to install Visual Studio Code on Ubuntu 20.04 step by step instructions

  1. The Visual Studio Code is available on Ubuntu 20.04 as a snap package. To install the Visual Studio Code execute the following command:
    $ sudo snap install --classic code
    code c47d83b2 from Visual Studio Code (vscode✓) installed
    


  2. To start the Visual Studio Code application search the top left Activities menu and click on an appropriate icon. Alternatively to start Visual Studio Code from the command line execute the bellow command:
    $ code
    
    Start Visual Studio Code on Ubuntu 20.04 Desktop

    Start Visual Studio Code on Ubuntu 20.04 Desktop