现在安装包:
通过修改下面的地址参数:https://${publisher}.gallery.vsassets.io/_apis/public/gallery/publisher/${publisher}/extension/${extension name}/${version}/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage
例如:
vscode-JS-CSS-HTML-formatter 插件,它的Home页面是:https://marketplace.visualstudio.com/items?itemName=lonefy.vscode-JS-CSS-HTML-formatter
那么,他对应的包下载地址是,
将:${publisher}替换为lonefy, ${extension name}替换为vscode-JS-CSS-HTML-formatter,${version} 在homepage里找到
现在回来时一ZIP文件,将zip文件改名为.vsix文件,
然后再命令行先输入:code --install-extension myextension.vsix
重启Code就可以了
时间: 2024-10-10 11:05:29