我每天都要做很多次的工作。
我从一个组件转移到另一个组件,每次都这么做。VS代码是否可以编写脚本,这样我就可以选择这三个文件,并让VS代码使我达到我想要的最后状态?
发布于 2021-12-12 11:48:36
我已经为此编写了一个扩展命令,还有更多:文件组脚本
您的用例可以使用以下设置编写脚本:
"fileGroup.scripts": {
"open side by side (HTML,CSS,*)": {
"script": [
{ "command": "workbench.action.focusFirstEditorGroup" },
{ "file": "all;\\.x?html$",
"command": "htmlRelatedLinks.openFile",
"args": { "file": "${file}"}
},
{ "command": "workbench.action.focusSecondEditorGroup" },
{ "file": "all;\\.css$",
"command": "htmlRelatedLinks.openFile",
"args": { "file": "${file}"}
},
{ "command": "workbench.action.focusThirdEditorGroup" },
{ "file": "all",
"command": "htmlRelatedLinks.openFile",
"args": { "file": "${file}"}
}
],
"interval": 500
}
}https://stackoverflow.com/questions/70239198
复制相似问题