Install visual studio code on ubuntu 16.4 desktop

vscode

Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (such as C++, C#, Java, Python, PHP, Go) and runtimes (such as .NET and Unity).

This tutorial will show you how to install Visual Studio Code on ununtu 16.4 desktop.

 

Steps

  1. Log into your ubuntu desktop and open a web browser.
    Browse to https://code.visualstudio.com/Download
  2. Click on the .deb 64 bit link
    Install visual studio code on ubuntu 16.4 desktop-image002
  3. Click save file and ok
    Install visual studio code on ubuntu 16.4 desktop-image004
  4. Once the download completes open a terminal and cd to /Downloads and type ls -l
    You should see your downloaded visual studio code package here.Install visual studio code on ubuntu 16.4 desktop-image006
  5. Next type sudo dpkg -i code_1.29.0-1542008808_amd64.deb
    (tab after -i will populate the file name)Hit enterInstall visual studio code on ubuntu 16.4 desktop-image008
  6. Visual studio code should now be installed. Verify by clicking the search icon and typing visual. You should see the visual studio code icon. Click on it and the app should open.Install visual studio code on ubuntu 16.4 desktop-image010Install visual studio code on ubuntu 16.4 desktop-image013
  7. You’re good to go.
  8. If you want to do the install from your terminal, run the following commands
    curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpgsudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'

    Then update the package cache and install the package using:

    sudo apt-get install apt-transport-https
    sudo apt-get updatesudo apt-get install code # or code-insiders

 

That's it, leave a comment below if this worked for you or not.

 

Leave a Comment