VS Code - Ubuntu Icon

Since about a month, I have been trying Visual Studio Code. It is great and developed in a fast pace. I prefer VS Code over Atom editor because it supports Ruby debugging through a plugin. How ever one problem I noticed was that that once installed the VS Code Icon will not show on Unity and instead a default text editor icon was used.

The issue is with the Unity launcher config. You can easily update it. I am on Ubuntu 16.04 LTS so if you are on another distribution I am not sure if this will work.

Make sure you have the icon installed

-> ls /usr/share/code/resources/app/resources/linux/
code.png

Then update the launcher config.

sudo vim /usr/share/applications/code.desktop

Update the Icon= line from code to /usr/share/code/resources/app/resources/linux/code.png.

Thats it and that beautiful icon will show nice and big in Unity when you search for code or open it.