VSCode: how to toggle copilot on/off without questions? #7553
Replies: 10 comments 5 replies
-
Made the same request in #7605, would love to avoid the need for this notification: So having an option or setting to toggle globally would be my preference. |
Beta Was this translation helpful? Give feedback.
-
Until the extension gets rid of the global/local question on toggle, I'm thinking we can use {
"id": "copilot",
"overrideWorkspaceSettings": true,
"values": [
{
"github.copilot.inlineSuggest.enable": false
},
{
"github.copilot.inlineSuggest.enable": true
}
]
}, {
"key": "ctrl+x p",
"command": "settings.cycle.copilot",
"when": "editorFocus"
}, |
Beta Was this translation helpful? Give feedback.
-
The issue with opening a second pane is that your cursor remains in the second tab area if you already had a tab open there. The ideal solution would be one where we can actively disable/enable inline suggestions. Currently there is no good solution for this, which seems like a massive oversight. |
Beta Was this translation helpful? Give feedback.
-
Would be nice to have a fix (without workarounds) for this issue soon. |
Beta Was this translation helpful? Give feedback.
-
Being able to quickly enable/disable Copilot without the popup would be awesome. Until then, does anyone know of a keybinding to actually highlight the popup and buttons without using a mouse? |
Beta Was this translation helpful? Give feedback.
-
Great suggestions. I too find Copilot's inline suggestions frequently wrong or distracting so I disable it most of the time, but it would be way more useful if it was possible to quickly enable/disable with a single keystroke. |
Beta Was this translation helpful? Give feedback.
-
Just to confirm, the solution I suggested above requires a bit of setup but does work very well: https://github.com/orgs/community/discussions/7553#discussioncomment-1629050 |
Beta Was this translation helpful? Give feedback.
-
Using the @dandavison solution: "settings.cycle": [
{
"id": "copilot",
"overrideWorkspaceSettings": true,
"values": [
{
"github.copilot.inlineSuggest.enable": false
},
{
"github.copilot.inlineSuggest.enable": true
}
]
}
] keybindings.json {
"key": "ctrl+k ctrl+alt+o",
"command": "settings.cycle.copilot",
}, Works for me. Note that it doesn't update the bottom right icon. For example, If you disable it while it was computing completion, the icon will infinitely cycle. |
Beta Was this translation helpful? Give feedback.
-
in vs code there is a button in the button right to quickly enable and disable copilot |
Beta Was this translation helpful? Give feedback.
-
Would be super useful. {
"key": "ctrl+alt+c ctrl+alt+p",
"command": "toggle",
"when": "editorTextFocus",
"args": {
"id": "copilot-enabled",
"value": [
{
"github.copilot.inlineSuggest.enable": true
},
{
"github.copilot.inlineSuggest.enable": false
}
]
}
} |
Beta Was this translation helpful? Give feedback.
-
github.copilot.toggleCopilot
generates a notification asking whether to toggle it globally or just for the current language. I'd like to make that choice once (or have it made for me) and thus have a quick toggle with no questions asked. How do I do that?Beta Was this translation helpful? Give feedback.
All reactions