Skip to content

Instantly share code, notes, and snippets.

@ssddanbrown
Last active March 14, 2021 11:57
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save ssddanbrown/c8b9c0efdc4f9024f79e to your computer and use it in GitHub Desktop.
Save ssddanbrown/c8b9c0efdc4f9024f79e to your computer and use it in GitHub Desktop.
Visual Studio Code Linux Desktop File
[Desktop Entry]
Version=1.0
Type=Application
Name=Visual Studio Code
Icon=/home/dan/Apps/vsc/resources/app/vso.png
Exec=/home/dan/Apps/vsc/Code
Comment=Develop with pleasure!
Categories=Development;IDE;
Terminal=false
StartupWMClass=visual-studio-code

How to use

  1. Follow the linux documentation found here to install Visual Studio Code.
  2. Copy the contents of code.desktop to ~/.local/share/applications/code.desktop
  3. Change /home/dan/Apps/vsc in the code.desktop file to the location you extracted the application to.

This how only been tested by myself on ElementaryOS Freya.

Copy link

ghost commented Sep 11, 2015

What is this means?
Terminal=false
And how to save code.desktop file to applications folder. Permission problems.
Tried also saving to desktop and moving forceful, file disappeared from both locations.

@askldjd
Copy link

askldjd commented Jan 3, 2016

The StartupWMClass is wrong. The VSC windows aren't tracked under Gnome with this setup.

StartupWMClass=visual-studio-code should be StartupWMClass=code.

See https://aur.archlinux.org/packages/visual-studio-code/

@markxnelson
Copy link

Thanks, this worked great for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment