1. firebase
  2. Flutter
  3. hacking
  4. Keep Coding
  5. Linux
  6. Penetration Testing
  7. python
  8. Tech
  9. Uncategorized

how to install visual studio code in ubuntu

Installing Visual Studio Code as a Snap Package

Visual Studio Code snap package is distributed and maintained by Microsoft.

Snaps are self-contained software packages that include the binary all dependencies needed to run the application. Snap packages are easy to upgrade and secure. Unlike the standard deb packages, snaps have a larger disk footprint and longer application startup time.


2 methods on how to install visual studio code in ubuntu

method 1

To begin, make sure that you have a fully updated version of Ubuntu Desktop installed.

Next, open your browser and go to the Visual Studio Code download page.1

https://code.visualstudio.com/Download

Click on the .deb link for Linux 64 Bit.

If prompted, click on Save File.

After the file downloads, open your terminal and go to the Downloads folder.1

$ cd ~/Downloads

Next, run this command to install Visual Studio Code.1

$ sudo dpkg -i code_1.26.0-1534177765_amd64.deb

Close the terminal.

Visual Studio Code is now installed.

To run it, click on the applications icon in the lower left corner of the screen.
At the top, type Visual Studio in the Search Box to find Visual Studio Code,
Click the icon to start Visual Studio Code.

Method 2
Installing Visual Studio Code with apt


$ sudo apt update
$ sudo apt install software-properties-common apt-transport-https wget
$ wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add –
$ sudo add-apt-repository “deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main”
$ sudo apt install code


When a new version is released you can update the Visual Studio Code package through your desktop standard Software Update tool or by running the following commands in your terminal:
Use:

$ sudo apt update
$ sudo apt upgrade