Vs code 的界面字体看久了,有点腻,想要换成Idea界面那种字体,于是我找到了插件 “ Custom UI”, “ Custom UI”插件依赖于 ”Monkey Patch“ 插件。 在启用 ” Monkey Patch“ 插件的时候报错:
Monkey Patch failed: Error: Command failed: C:\Users\bin\AppData\Local\Temp\6b220c43-ce7f-458c-b34a-5e8c2db06d30\script.cmd
在网上查找后,找到了解决方案:
打开文件夹:C:\Users\【usr name】\.vscode\extensions\iocave.monkey-patch-0.1.13\out
,编辑 script.js
文件,找到copy
函数, 用 "${this.folder}\\${pathFrom}"
替换 "${pathFrom}"
,重启VS code,启用 ” Monkey Patch“ 插件 就可以了。
下面是修改后的 script.js
文件的copy函数。
copy(pathFrom, pathTo) {
if (this.isWindows) {
this.command(`copy /Y "${this.folder}\\${pathFrom}" "${pathTo}"`);
}
else {
this.command(`cp "${this.folder}\\${pathFrom}" "${pathTo}"`);
}
}
”Monkey Patch“ 插件版本:0.1.13
解决方案来源:https://github.com/iocave/monkey-patch/issues/5