How to install Microsoft Visual Studio Code on Ubuntu

Visual Studio Code is a free code editor for Windows, Linux and Mac from Microsoft. It comes with IntelliSense, Debug code right from the editor, GIT and extensions support. IntelliSense provides smart highlighting and autocomplete based on variable types, function definitions, and imported modules. Some other features are code refactoring, bracket matching and snippets. You can use this for editing HTML, CSS, LESS, SASS, and JSON, C++, jade, PHP, Python, XML, Batch, F#, DockerFile, Coffee Script, Java, HandleBars, R, Objective-C, PowerShell, Luna, Visual Basic, Markdown. JavaScript, JSON, HTML, CSS, LESS, SASS, C#, TypeScript.

Install Microsoft Visual Studio Code on Ubuntu:

Just go to the Microsoft Visual Studio Code download page. And download the latest .deb file. Double click the file and install it with Ubuntu Software or any other installer like gdebi installer.
https://code.visualstudio.com/Download

If you want the latest Microsoft Visual Studio Code via ubuntu via Software Updater, then install Visual Studio Code using the below method.

Suggested Read:  Ubuntu 16.10 Wallpaper Contest now open for all

Open your terminal app and download the Microsoft repo security key running the below command in terminal.

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg

Then run the below command in terminal.

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

Type your ubuntu password. Then add the Visual studio code repo by using the below command in terminal.

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

Then enter the below command in terminal and hit enter to install microsoft visual studio code editor on ubuntu

sudo apt update
sudo apt install code

After the successful installation of Microsoft Visual Studio Code restart your ubuntu. Click the Dash home from unity launcher. And type Visual Studio Code in the search field. Then click Microsoft Visual Studio Code to open it.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

*