vscode快捷键编辑/主题

进行搜索命令。

1、有提示的时候向下选择的命令:selectNextSuggestion

2、有提示的时候向上选择的命令:selectPrevSuggestion

3、光标上移,下移,左移,有移:cursorUp,cursorDown,cursorLeft,cursorRight

// 将键绑定放在此文件中以覆盖默认值
[
    {
        "key": "ctrl+k",
        "command": "cursorDown",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+i",
        "command": "cursorUp",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+j",
        "command": "cursorLeft",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+l",
        "command": "cursorRight",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+shift+k",
        "command": "selectNextSuggestion",
        "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
    },
    {
        "key": "ctrl+down",
        "command": "-selectNextSuggestion",
        "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
    },
    {
        "key": "ctrl+shift+i",
        "command": "selectPrevSuggestion",
        "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
    },
    {
        "key": "ctrl+up",
        "command": "-selectPrevSuggestion",
        "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
    }
]

 ------------下方 mac -------------

// 将键绑定放在此文件中以覆盖默认值
[
    {
        "key": "cmd+k",
        "command": "cursorDown",
        "when": "textInputFocus"
    },
    {
        "key": "cmd+i",
        "command": "cursorUp",
        "when": "textInputFocus"
    },
    {
        "key": "cmd+j",
        "command": "cursorLeft",
        "when": "textInputFocus"
    },
    {
        "key": "cmd+l",
        "command": "cursorRight",
        "when": "textInputFocus"
    },
    {
        "key": "cmd+down",
        "command": "-selectNextSuggestion",
        "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
    },
    {
        "key": "cmd+up",
        "command": "-selectPrevSuggestion",
        "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
    },
    {
        "key": "alt+j",
        "command": "cursorLeftSelect",
        "when": "textInputFocus"
    },
    //复制选中
    {
        "key": "alt+j",
        "command": "cursorLeftSelect",
        "when": "textInputFocus"
    },
    {
        "key": "alt+l",
        "command": "cursorRightSelect",
        "when": "textInputFocus"
    },
    {
        "key": "alt+i",     //无效
        "command": "cursorUpSelect",
        "when": "textInputFocus"
    },
    {
        "key": "alt+k",
        "command": "cursorDownSelect",
        "when": "textInputFocus"
    },
    { //选择弹框的向下选择
        "key": "cmd+k",
        "command": "selectNextSuggestion",
        "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
    },
    { //选择弹框的向上选择
        "key": "cmd+i",
        "command": "selectPrevSuggestion",
        "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
    },
    {
        "key": "shift+up",
        "command": "-cursorUpSelect",
        "when": "textInputFocus"
    }
]

 

 

 

 

三、自动保存

  设置->文本编辑->文件:第三项的Auto Save的选项改为afterDelay

四、常用插件:

  右键可以打开浏览器:open in browser插件

  编辑器主题:jetbrains darcula theme插件(和idea黯黑主题一样)

  文件夹图标主题:Material Icon Theme插件

  键盘快捷键和idea一样:IntelliJ IDEA Keybindings插件

五、问题:

  1、有时候不提示类型:

      插件地方搜索@builtin type,把这个“JavaScript 和 TypeScript 的语言功能”设置成禁用(工作区)

 

posted @ 2023-01-29 15:26  枫叶ak  阅读(161)  评论(0)    收藏  举报