Visual Studio Code¶
快捷键绑定¶
在按下Ctrl+/注释后跳到下一行,就像JetBrains IDE一样¶
keybindings.json
[ ...
{
"key": "ctrl+/",
"command": "runCommands",
"args": {
"commands": ["editor.action.commentLine", "cursorDown"]
},
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+/",
"command": "-editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
... ]
使用Ctrl+Enter在Copilot插件中发送消息¶
keybindings.json
[ ...
{
"key": "ctrl+enter",
"command": "workbench.action.chat.submit",
"when": "chatInputHasSendableContent && chatSessionOptionsValid && inChatInput && !chatSessionRequestInProgress && !withinEditSessionDiff || chatInputHasSendableContent && chatSessionOptionsValid && inChatInput && !withinEditSessionDiff && chatEditingSentRequest == 's'"
},
{
"key": "enter",
"command": "-workbench.action.chat.submit",
"when": "chatInputHasSendableContent && chatSessionOptionsValid && inChatInput && !chatSessionRequestInProgress && !withinEditSessionDiff || chatInputHasSendableContent && chatSessionOptionsValid && inChatInput && !withinEditSessionDiff && chatEditingSentRequest == 's'"
},
{
"key": "ctrl+shift+enter",
"command": "workbench.action.chat.submitWithCodebase",
"when": "chatInputHasText && inChatInput && !chatSessionRequestInProgress"
},
{
"key": "ctrl+enter",
"command": "-workbench.action.chat.submitWithCodebase",
"when": "chatInputHasText && inChatInput && !chatSessionRequestInProgress"
},
... ]