篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 手动安装Visual Studio Code插件相关的知识,希望对你有一定的参考价值。
#!/bin/bash
# https://code.visualstudio.com/docs/editor/extension-gallery
# https://code.visualstudio.com/docs/extensions/install-extension#_install-a-packaged-extension-vsix
# Call like this:
# install.sh publisher_name extension_name version
curl https://$1.gallery.vsassets.io/_apis/public/gallery/publisher/$1/extension/$2/$3/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage -o $1.$2.$3.vsix
# now install the plugin
code -w $1.$2.$3.vsix
# maybe get rid of it after installed
rm -f $1.$2.$3.vsix
以上是关于sh 手动安装Visual Studio Code插件的主要内容,如果未能解决你的问题,请参考以下文章