Skip to content

Instantly share code, notes, and snippets.

@scottwarren
Created April 23, 2025 11:06
Show Gist options
  • Save scottwarren/283c03afd19add571db533f30f480135 to your computer and use it in GitHub Desktop.
Save scottwarren/283c03afd19add571db533f30f480135 to your computer and use it in GitHub Desktop.
Settings to disable auto suggestions for GitHub Copilot (and rebind the trigger key)
// ~/Library/Application Support/Code/User/keybindings.json
[
{
// According to ChatGPT CapsLock isn't bindable by default in VSCode, so if you want to use it
// The suggestion is to use something like Karabiner Elements to rebind your caps lock key to something like F20
// and then bind it to trigger this
// Although the docs seem to suggest it is possible to bind: https://code.visualstudio.com/docs/configure/keybindings
"key": "cmd+enter",
"command": "github.copilot.generate",
"when": "editorTextFocus && !editorReadonly"
}
]
// ~/Library/Application Support/Code/User/settings.json
{
// Disable the autocomplete part of GitHub Copilot. Trigger it manually via alt+\ (default shortcut)
// @deprecated, see: "github.copilot.enable" instead.
// "github.copilot.editor.enableAutoCompletions": false,
"github.copilot.enable": {
// Set to false if you want to disable for all file types
"*": true,
// Otherwise you can disable it for specific languages
"plaintext": true,
"markdown": false,
"scminput": false,
"yaml": true,
"typescript": false,
"javascript": false,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment