Microsoft’s code editor was officially introduced months ago. An editor that was not only available for Windows but also for other operating systems such as Ubuntu. The latter did draw attention as no one thought that Microsoft would release an Open Source version of its famous code editor.
Visual Studio Code is a lightweight editor that has become a powerful tool for the developer and designer who needs to code in many languages. However, Visual Studio Code has no deb file or rpm file to be able to install on Ubuntu so we will have to use other options.
There are currently two options for installing Visual Studio Code on our Ubuntu. The first choice of them is based on doing so through Ubuntu Make. In this post I discuss how to install Ubuntu Make. Once installed, in the terminal we must write the following:
umake web visual-studio-code
This is the simplest method but it is also the least personal that exists. In case you want to use the official sources, we must first download here. Once downloaded, we unzip them to our Home. Once unzipped we created a symbolic link to the user folder, We did this by writing in the terminal:
sudo ln -s /ruta/donde/descomprimimos/VisualStudio /usr/local/bin/code
Now we need to write the shortcut to the desktop or to the applications menu, So we opened the terminal and wrote the following:
sudo gedit /usr/share/applications/MSVS.desktop
And we paste the following into the file:
#!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Terminal=false Exec=/opt/msvs/Code Name=MSVS Icon=/opt/msvs/flurry_ios_visual_studio_2012_replacement_icon_by_flakshack-d5nnelp.png Categories=Development
We save it, thus having a direct access to Visual Studio Code.
Conclusion on Visual Studio Code
Visual Studio Code is a very simple editor with a great future. It’s a great tool if you only want a code editor, as light as Gedit, but if you want to compile or debug, it’s best to opt for other options like Netbeans or Eclipse.