你好呀~

vscode配置

  把编辑器从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自动化神器,后面会出一篇教程的。

posted @ 2022-08-18 10:02  测神  阅读(171)  评论(4编辑  收藏  举报