- Create
vscode-url-handler
in/usr/bin
- Create
vscode-url-handler.desktop
in/usr/share/applications
- Edit
mimeappd.list
in/usr/share/applications/mimeappd.list
Last active
August 31, 2018 17:01
-
-
Save socheatsok78/9623e8f6da0acbec10d4ae1171bb7c70 to your computer and use it in GitHub Desktop.
Add URL Handler to Visual Studio Code on Linux, vscode, code, linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x-scheme-handler/vscode=code-url-handler.desktop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Launch Visual Studio Code | |
/usr/share/code/code -g -r "$(echo ${1:14} | echo -e "$(sed 's/+/ /g; s/%/\\x/g')")" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env xdg-open | |
[Desktop Entry] | |
Name=Visual Studio Code URL Handler | |
Comment=Code Editing. Redefined. | |
GenericName=Text Editor | |
Exec=/usr/bin/vscode-url-handler %u | |
Icon=code | |
Type=Application | |
StartupNotify=false | |
StartupWMClass=Code | |
NoDisplay=true | |
Terminal=false | |
Categories=Utility;TextEditor;Development;IDE; | |
MimeType=x-scheme-handler/vscode | |
Keywords=vscode-handler; | |
X-Desktop-File-Install-Version=0.22 | |
Name[en_US]=code-url-handler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment