下载插件 multi-command
打开 keybindings.json
我的是在这个路径下
C:\Users\Administrator\AppData\Roaming\Code\User
然后添加
{
"key": "ctrl+d", //快捷键
"command": "extension.multiCommand.execute",
"args": {
"sequence": [
"filesExplorer.copy", //复制
"filesExplorer.paste", //粘贴
"renameFile", //重命名
]
},
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
}
这样快捷键ctrl+d == ctrl+c ctrl+v f2
有些软件本来按ctrl+d就行实现这样子的效果,比较好