After installing VS Code i'm getting a default icon not that one that comes with vs code

How can i get it look like these ?

enter image description here

3 Answers 3


Based on VS Code developers on github we can solve this by changing the path to the right icon like so:

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

And change the Icon link to :


It should Look like so:

[Desktop Entry]
Name=Visual Studio Code
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/usr/share/code/code --unity-launch %U


[Desktop Action new-window]
Name=New Window
Name[de]=Neues Fenster
  • 1
    Icon=code was how mine was set by default. Changed it to the path you specified and it worked. Thanks!
    – Alkarin
    Aug 3, 2017 at 18:04
  • I have installed VS Code via Snap on Ubuntu Budgie 18.04 and I have this code.png graphic file missing. Where I could download the original?
    – Marecky
    Mar 26, 2019 at 21:26
  • 2
    @Marecky: I had the same problem, but you should find a copy in /usr/share/code/resources/app/resources/linux. Open Terminal, navigate to that folder and try this command: sudo cp code.png /usr/share/pixmaps/code.png.
    – AlainD
    Nov 12, 2019 at 11:03

There is no information about HOW did you install your software. In Ubuntu there are several ways to install packages, some of them may be harder, some easier. I recommend reading this tutorial first:


Im pretty sure that these steps will lead you to succes installation with your icons working fine.

PS: To uninstall your current version you can use

sudo apt-get purge code

Just in case you don't know.

  • Hi there the problem is not because of the installation i followed vs code installation guide besides i have seen some people reporting the same problem on github but now i solved it :) thanks for feedback
    – lotfio
    Jul 27, 2017 at 19:05
  • You're welcome bro, glad to hear you've fixed what was broken :) Many ppl tend to install packages wrong way, so I started simply. Plus, I had no problem with icons installing it this way, so my answer was based on my experience.
    – chazecka
    Jul 27, 2017 at 19:08

Add this path to the icon:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.