Skip to content

Instantly share code, notes, and snippets.

@a01sa01to
Last active October 3, 2025 15:49
Show Gist options
  • Select an option

  • Save a01sa01to/af5aff9eb2a74147abd47fc6969526b2 to your computer and use it in GitHub Desktop.

Select an option

Save a01sa01to/af5aff9eb2a74147abd47fc6969526b2 to your computer and use it in GitHub Desktop.
Disable Copilot in VSCode for ICPC
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+f9",
"command": "-workbench.action.chat.nextFileTree",
"when": "chatIsEnabled && inChat"
},
{
"key": "ctrl+alt+i",
"command": "-workbench.action.chat.open",
"when": "!chatSetupDisabled && !chatSetupHidden"
},
{
"key": "ctrl+shift+i",
"command": "-workbench.action.chat.openAgent",
"when": "config.chat.agent.enabled && !chatSetupDisabled && !chatSetupHidden"
},
{
"key": "ctrl+alt+pageup",
"command": "-workbench.action.chat.previousCodeBlock",
"when": "chatIsEnabled && inChat"
},
{
"key": "ctrl+shift+f9",
"command": "-workbench.action.chat.previousFileTree",
"when": "chatIsEnabled && inChat"
},
{
"key": "alt+win+oem_2",
"command": "-workbench.action.chat.run.prompt",
"when": "chatIsEnabled && config.chat.promptFiles"
},
{
"key": "ctrl+oem_period",
"command": "-workbench.action.chat.toggleAgentMode",
"when": "chatIsEnabled && inChatInput && !chatSessionRequestInProgress && chatLocation == 'panel'"
},
{
"key": "f7",
"command": "-chatEditor.action.showAccessibleDiffView",
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress"
},
{
"key": "ctrl+i",
"command": "-workbench.action.chat.startVoiceChat",
"when": "chatIsEnabled && hasSpeechProvider && inChatInput && !chatSessionRequestInProgress && !editorFocus && !notebookEditorFocused && !scopedVoiceChatGettingReady && !speechToTextInProgress || chatIsEnabled && hasSpeechProvider && inlineChatFocused && !chatSessionRequestInProgress && !editorFocus && !notebookEditorFocused && !scopedVoiceChatGettingReady && !speechToTextInProgress"
},
{
"key": "escape",
"command": "-workbench.action.chat.stopListening",
"when": "voiceChatInProgress && scopedVoiceChatInProgress == 'editor' || voiceChatInProgress && scopedVoiceChatInProgress == 'inline' || voiceChatInProgress && scopedVoiceChatInProgress == 'quick' || voiceChatInProgress && scopedVoiceChatInProgress == 'view'"
},
{
"key": "ctrl+i",
"command": "-workbench.action.chat.stopListeningAndSubmit",
"when": "inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'editor' || inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'inline' || inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'quick' || inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'view' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'editor' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'inline' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'quick' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'view'"
},
{
"key": "escape",
"command": "-workbench.action.speech.stopReadAloud",
"when": "scopedChatSynthesisInProgress && textToSpeechInProgress"
},
{
"key": "ctrl+shift+n",
"command": "-chatEditor.action.reject",
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress || chatEdits.hasEditorModifications && notebookEditorFocused && !chatEdits.isRequestInProgress"
},
{
"key": "ctrl+n",
"command": "-chatEditor.action.undoHunk",
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress || chatEdits.hasEditorModifications && notebookCellListFocused && !chatEdits.isRequestInProgress"
},
{
"key": "escape",
"command": "-editor.debug.action.closeExceptionWidget",
"when": "exceptionWidgetVisible"
},
{
"key": "ctrl+enter",
"command": "-workbench.action.chat.applyInEditor",
"when": "accessibleViewInCodeBlock && chatIsEnabled || chatIsEnabled && inChat && !inChatInput"
},
{
"key": "ctrl+alt+oem_2",
"command": "-workbench.action.chat.attach.instructions",
"when": "chatIsEnabled && config.chat.promptFiles"
},
{
"key": "alt+f5",
"command": "-chatEditor.action.navigateNext",
"when": "chatEdits.hasEditorModifications && chatIsEnabled && editorFocus || chatEdits.hasEditorModifications && chatIsEnabled && notebookCellListFocused"
},
{
"key": "shift+alt+f5",
"command": "-chatEditor.action.navigatePrevious",
"when": "chatEdits.hasEditorModifications && chatIsEnabled && editorFocus || chatEdits.hasEditorModifications && chatIsEnabled && notebookCellListFocused"
},
{
"key": "ctrl+enter",
"command": "-workbench.action.chat.insertCodeBlock",
"when": "accessibleViewInCodeBlock && chatIsEnabled || chatIsEnabled && inChat && !inChatInput"
},
{
"key": "ctrl+alt+enter",
"command": "-workbench.action.chat.runInTerminal",
"when": "accessibleViewInCodeBlock && chatIsEnabled || chatIsEnabled && inChat"
},
{
"key": "ctrl+shift+y",
"command": "-chatEditor.action.accept",
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress || chatEdits.hasEditorModifications && notebookEditorFocused && !chatEdits.isRequestInProgress"
},
{
"key": "ctrl+y",
"command": "-chatEditor.action.acceptHunk",
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress || chatEdits.hasEditorModifications && notebookCellListFocused && !chatEdits.isRequestInProgress"
},
{
"key": "ctrl+l",
"command": "-workbench.action.chat.newChat",
"when": "chatEditingParticipantRegistered && chatIsEnabled && inChat"
},
{
"key": "ctrl+alt+pagedown",
"command": "-workbench.action.chat.nextCodeBlock",
"when": "chatIsEnabled && inChat"
},
{
"key": "ctrl+enter",
"command": "-inlineChat.acceptChanges",
"when": "inlineChatHasProvider && inlineChatVisible"
},
{
"key": "ctrl+i",
"command": "-inlineChat2.close",
"when": "inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.isRequestInProgress && chatEdits.requestCount == '0' || inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.hasEditorModifications && !chatEdits.isRequestInProgress && chatEdits.requestCount == '0'"
},
{
"key": "escape",
"command": "-inlineChat2.close",
"when": "inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.hasEditorModifications && !chatEdits.isRequestInProgress || inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.isRequestInProgress && chatEdits.requestCount == '0'"
},
{
"key": "escape",
"command": "-workbench.action.terminal.chat.close",
"when": "chatIsEnabled && terminalChatFocus && terminalChatVisible || chatIsEnabled && terminalChatVisible && terminalFocus"
},
{
"key": "ctrl+down",
"command": "-inlineChat.focus",
"when": "editorTextFocus && inlineChatVisible && !accessibilityModeEnabled && !inlineChatFocused && !isEmbeddedDiffEditor && inlineChatOuterCursorPosition == 'above'"
},
{
"key": "ctrl+i",
"command": "-inlineChat.start",
"when": "editorFocus && inlineChatHasEditsAgent && inlineChatPossible && !editorReadonly && !editorSimpleInput || editorFocus && inlineChatHasProvider && inlineChatPossible && !editorReadonly && !editorSimpleInput"
},
{
"key": "ctrl+up",
"command": "-inlineChat.focus",
"when": "editorTextFocus && inlineChatVisible && !accessibilityModeEnabled && !inlineChatFocused && !isEmbeddedDiffEditor && inlineChatOuterCursorPosition == 'below'"
},
{
"key": "ctrl+alt+enter",
"command": "-workbench.action.terminal.chat.insertCommand",
"when": "chatIsEnabled && terminalChatResponseContainsCodeBlock && terminalHasBeenCreated && !terminalChatActiveRequest && !terminalChatResponseContainsMultipleCodeBlocks || chatIsEnabled && terminalChatResponseContainsCodeBlock && terminalProcessSupported && !terminalChatActiveRequest && !terminalChatResponseContainsMultipleCodeBlocks"
},
{
"key": "alt+enter",
"command": "-workbench.action.terminal.chat.insertCommand",
"when": "chatIsEnabled && terminalChatResponseContainsCodeBlock && terminalHasBeenCreated && !terminalChatActiveRequest && !terminalChatResponseContainsMultipleCodeBlocks || chatIsEnabled && terminalChatResponseContainsCodeBlock && terminalProcessSupported && !terminalChatActiveRequest && !terminalChatResponseContainsMultipleCodeBlocks"
},
{
"key": "ctrl+alt+enter",
"command": "-workbench.action.terminal.chat.insertFirstCommand",
"when": "chatIsEnabled && terminalChatResponseContainsMultipleCodeBlocks && terminalHasBeenCreated && !terminalChatActiveRequest || chatIsEnabled && terminalChatResponseContainsMultipleCodeBlocks && terminalProcessSupported && !terminalChatActiveRequest"
},
{
"key": "alt+enter",
"command": "-workbench.action.terminal.chat.insertFirstCommand",
"when": "chatIsEnabled && terminalChatResponseContainsMultipleCodeBlocks && terminalHasBeenCreated && !terminalChatActiveRequest || chatIsEnabled && terminalChatResponseContainsMultipleCodeBlocks && terminalProcessSupported && !terminalChatActiveRequest"
},
{
"key": "ctrl+enter",
"command": "-inlineChat2.keep",
"when": "inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.isRequestInProgress"
},
{
"key": "f7",
"command": "-inlineChat.moveToNextHunk",
"when": "inlineChatHasProvider && inlineChatVisible"
},
{
"key": "shift+f7",
"command": "-inlineChat.moveToPreviousHunk",
"when": "inlineChatHasProvider && inlineChatVisible"
},
{
"key": "ctrl+enter",
"command": "-workbench.action.terminal.chat.runCommand",
"when": "chatIsEnabled && terminalChatResponseContainsCodeBlock && terminalHasBeenCreated && !terminalChatActiveRequest && !terminalChatResponseContainsMultipleCodeBlocks || chatIsEnabled && terminalChatResponseContainsCodeBlock && terminalProcessSupported && !terminalChatActiveRequest && !terminalChatResponseContainsMultipleCodeBlocks"
},
{
"key": "ctrl+enter",
"command": "-workbench.action.terminal.chat.runFirstCommand",
"when": "chatIsEnabled && terminalChatResponseContainsMultipleCodeBlocks && terminalHasBeenCreated && !terminalChatActiveRequest || chatIsEnabled && terminalChatResponseContainsMultipleCodeBlocks && terminalProcessSupported && !terminalChatActiveRequest"
},
{
"key": "ctrl+k i",
"command": "-inlineChat.startWithCurrentLine",
"when": "inlineChatHasProvider && !editorReadonly && !inlineChatVisible"
},
{
"key": "ctrl+i",
"command": "-inlineChat.startWithCurrentLine",
"when": "inlineChatHasProvider && inlineChatShowingHint && !editorReadonly && !inlineChatVisible"
},
{
"key": "ctrl+i",
"command": "-workbench.action.terminal.chat.start",
"when": "chatIsEnabled && terminalChatAgentRegistered && terminalFocusInAny && terminalHasBeenCreated || chatIsEnabled && terminalChatAgentRegistered && terminalFocusInAny && terminalProcessSupported"
},
{
"key": "ctrl+i",
"command": "-inlineChat2.reveal",
"when": "inlineChatHasEditsAgent && !chatEdits.isGlobalEditingSession && chatEdits.requestCount >= 1"
},
{
"key": "ctrl+backspace",
"command": "-inlineChat2.undo",
"when": "inlineChatHasEditsAgent && inlineChatVisible && !chatEdits.isRequestInProgress"
},
{
"key": "ctrl+up",
"command": "-chat.action.focus",
"when": "chatCursorAtTop && inChatInput && !quickChatHasFocus"
},
{
"key": "ctrl+up",
"command": "-chat.action.focus",
"when": "inChatInput && isLinux && !quickChatHasFocus || inChatInput && isWindows && !quickChatHasFocus"
},
{
"key": "ctrl+down",
"command": "-chat.action.focus",
"when": "inChat && inChatInput && quickChatHasFocus"
},
{
"key": "ctrl+c",
"command": "-chat.inlineResourceAnchor.copyResource",
"when": "chatAttachmentResource"
},
{
"key": "ctrl+enter",
"command": "-chat.inlineResourceAnchor.openToSide",
"when": "chatAttachmentResource"
},
{
"key": "ctrl+enter",
"command": "-chatEditing.acceptAllFiles",
"when": "hasUndecidedChatEditingResource && inChatInput && !chatSessionRequestInProgress"
},
{
"key": "ctrl+backspace",
"command": "-chatEditing.discardAllFiles",
"when": "hasUndecidedChatEditingResource && inChatInput && !chatInputHasText && !chatSessionRequestInProgress"
},
{
"key": "shift+alt+f7",
"command": "-chatEditor.action.toggleDiff",
"when": "chatEdits.hasEditorModifications && editorFocus"
},
{
"key": "ctrl+down",
"command": "-inlineChat.arrowOutDown",
"when": "inlineChatFocused && inlineChatHasProvider && inlineChatInnerCursorLast && !accessibilityModeEnabled && !isEmbeddedDiffEditor"
},
{
"key": "ctrl+up",
"command": "-inlineChat.arrowOutUp",
"when": "inlineChatFocused && inlineChatHasProvider && inlineChatInnerCursorFirst && !accessibilityModeEnabled && !isEmbeddedDiffEditor"
},
{
"key": "escape",
"command": "-inlineChat.close",
"when": "inlineChatHasProvider && inlineChatVisible"
},
{
"key": "escape",
"command": "-inlineChat.discardHunkChange",
"when": "inlineChatHasProvider && inlineChatVisible && inlineChatResponseType == 'messagesAndEdits'"
},
{
"key": "escape",
"command": "-inlineChat.hideHint",
"when": "inlineChatShowingHint"
},
{
"key": "ctrl+i",
"command": "-inlineChat.holdForSpeech",
"when": "hasSpeechProvider && inlineChatVisible && textInputFocus"
},
{
"key": "ctrl+r",
"command": "-inlineChat.regenerate",
"when": "inlineChatHasProvider && inlineChatVisible"
},
{
"key": "ctrl+z",
"command": "-inlineChat.unstash",
"when": "inlineChatHasStashedSession && !editorReadonly"
},
{
"key": "ctrl+down",
"command": "-inlineChat.viewInChat",
"when": "inChatInput && inlineChatHasProvider && inlineChatVisible"
},
{
"key": "ctrl+alt+i",
"command": "-workbench.panel.chat",
"when": "workbench.panel.chat.view.copilot.active"
},
{
"key": "ctrl+enter",
"command": "-workbench.action.chat.acceptTool",
"when": "chatHasToolConfirmation && inChat"
},
{
"key": "ctrl+oem_2",
"command": "-workbench.action.chat.attachContext",
"when": "inChatInput && chatLocation == 'panel'"
},
{
"key": "alt+backspace",
"command": "-workbench.action.chat.cancel"
},
{
"key": "ctrl+down",
"command": "-workbench.action.chat.focusInput",
"when": "inChat && !inChatInput && !quickChatHasFocus"
},
{
"key": "ctrl+up",
"command": "-workbench.action.chat.focusInput",
"when": "inChat && quickChatHasFocus && !inChatInput"
},
{
"key": "ctrl+i",
"command": "-workbench.action.chat.holdToVoiceChatInChatView",
"when": "chatIsEnabled && hasSpeechProvider && !chatSessionRequestInProgress && !editorFocus && !inChatInput && !inlineChatFocused && !notebookEditorFocused && !searchViewletFocus"
},
{
"key": "ctrl+alt+oem_period",
"command": "-workbench.action.chat.openModelPicker",
"when": "chatIsEnabled && inChatInput"
},
{
"key": "ctrl+alt+win+oem_2",
"command": "-workbench.action.chat.run-in-new-chat.prompt.current",
"when": "chatIsEnabled && config.chat.promptFiles && editorTextFocus && resourceSet && resourceLangId == 'prompt'"
},
{
"key": "alt+win+oem_2",
"command": "-workbench.action.chat.run.prompt.current",
"when": "chatIsEnabled && config.chat.promptFiles && editorTextFocus && resourceSet && resourceLangId == 'prompt'"
},
{
"key": "ctrl+shift+enter",
"command": "-workbench.action.chat.sendToNewChat",
"when": "chatInputHasText && chatRequestIsPaused && inChatInput || chatInputHasText && inChatInput && !chatSessionRequestInProgress || chatPromptFileAttached && chatRequestIsPaused && inChatInput || chatPromptFileAttached && inChatInput && !chatSessionRequestInProgress"
},
{
"key": "escape",
"command": "-workbench.action.chat.stopReadChatItemAloud",
"when": "scopedChatSynthesisInProgress"
},
{
"key": "enter",
"command": "-workbench.action.chat.submit",
"when": "inChatInput && chatMode == 'ask'"
},
{
"key": "ctrl+enter",
"command": "-workbench.action.chat.submitWithCodebase",
"when": "chatInputHasText && chatRequestIsPaused && inChatInput || chatInputHasText && inChatInput && !chatSessionRequestInProgress || chatPromptFileAttached && chatRequestIsPaused && inChatInput || chatPromptFileAttached && inChatInput && !chatSessionRequestInProgress"
},
{
"key": "shift+alt+enter",
"command": "-workbench.action.chat.submitWithoutDispatching",
"when": "chatInputHasText && chatRequestIsPaused && inChatInput && chatMode == 'ask' || chatInputHasText && inChatInput && !chatSessionRequestInProgress && chatMode == 'ask' || chatPromptFileAttached && chatRequestIsPaused && inChatInput && chatMode == 'ask' || chatPromptFileAttached && inChatInput && !chatSessionRequestInProgress && chatMode == 'ask'"
},
{
"key": "delete",
"command": "-workbench.action.chat.undoEdits",
"when": "inChat && !textInputFocus"
},
{
"key": "ctrl+shift+alt+l",
"command": "-workbench.action.quickchat.toggle",
"when": "chatIsEnabled"
},
{
"key": "ctrl+r",
"command": "-workbench.action.terminal.chat.rerunRequest",
"when": "chatIsEnabled && terminalChatFocus && terminalHasBeenCreated && !terminalChatActiveRequest || chatIsEnabled && terminalChatFocus && terminalProcessSupported && !terminalChatActiveRequest"
}
]
{
"chat.agent.enabled": false,
"chat.commandCenter.enabled": false,
"chat.notifyWindowOnConfirmation": false,
"accessibility.verbosity.inlineChat": false,
"github.copilot.enable": {
"*": false
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment