vscode自定义插件安装位置

500 阅读1分钟

编写bat文件调用code.cmd:

@echo off 
if "%1" == "h" goto begin 
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit 
:begin
echo current directory: %cd%
echo strating vscode, please wait a moment
%cd%\MicrosoftVSCode\bin\code.cmd --extensions-dir %cd%\extensions
pause

每次启动vscode从此bat启动