把编辑器从pycharm换成了vscode,倒不是因为后者更好用,相反我觉得前者更好用。而是因为一款插件 clicknium,它只支持vscode。
1. 快捷键配置
// 将键绑定放在此文件中以覆盖默认值auto[] [ { "key": "ctrl+d", "command": "editor.action.copyLinesDownAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "shift+alt+down", "command": "-editor.action.copyLinesDownAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "ctrl+shift+up", "command": "editor.action.moveLinesUpAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "alt+up", "command": "-editor.action.moveLinesUpAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "ctrl+shift+down", "command": "editor.action.moveLinesDownAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "alt+down", "command": "-editor.action.moveLinesDownAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "ctrl+shift+w", "command": "workbench.action.closeOtherEditors" }, { "key": "ctrl+d", "command": "-editor.action.addSelectionToNextFindMatch", "when": "editorFocus" }, { "key": "ctrl+right", "command": "cursorLineEnd" }, { "key": "ctrl+shift+right", "command": "cursorLineEndSelect" }, { "key": "ctrl+left", "command": "-cursorWordLeft", "when": "textInputFocus && !accessibilityModeEnabled" }, { "key": "ctrl+left", "command": "cursorLineStart" }, { "key": "ctrl+shift+left", "command": "cursorLineStartSelect" }, { "key": "ctrl+w", "command": "expand_region", "when": "editorTextFocus" } ]
2. 插件安装:
expand-region:不支持直接安装,下载后,按f1,输入install,选择install from visx那个选项,选择下载的插件安装即可。
clicknium:确实挺不错的ui自动化神器,后面会出一篇教程的。
标签:editorTextFocus,ctrl,vscode,配置,when,command,key,action From: https://www.cnblogs.com/teark/p/16597740.html