Possibility to disable comment suggestion? #8062
Replies: 50 comments 43 replies
-
|
Just chiming in to say that the only gripe I have with Copilot is that inline suggestions show while I'm writing a comment. It distracts my thought process and slows me down significantly. Without that issue, Copilot is game-breaking. But with that issue, it's kind of a double-edged sword in terms of improving your productivity. |
Beta Was this translation helpful? Give feedback.
-
|
Here's a workaround I figured out for how to fix the comment suggestions problem! 🚀 The basic idea is to create a keyboard shortcut that we press in order to disable the inline suggestions from popping up. So before we write a comment, we can just press the keyboard shortcut to disable suggestions, then write the comment, and then press the keyboard shortcut to enable suggestions again. It's not a perfect solution, but it works! To do this:
{
"key": "shift+cmd+c", // set this to whatever works for you
"command": "toggle",
// By the way, this "when" expression was inspired from the "when" expression for Copilot
// extension's "Trigger Inline Suggestions" keyboard shortcut.
"when": "editorTextFocus && !editorHasSelection",
"args": {
// This id is just a unique name you come up with yourself
"id": "toggleGithubCopilotInlineSuggestionsBeingEnabled",
// The names and values of the setting you want to toggle. In this case, it's to enable/disable the
// `github.copilot.inlineSuggest.enable` setting.
"value": [
{
"github.copilot.inlineSuggest.enable": true
},
{
"github.copilot.inlineSuggest.enable": false
}
]
}
},For more info on how to setup a toggle keyboard shortcut you can look at the extension page for the Toggle extension. You can also read more info about it here.
Note: This will allow you to disable inline suggestions from showing up. But it won't make a current inline suggestion, that's already showing, vanish. Just press Esc in that situation if it ever comes up. Ideally, you'd disable inline suggestions ahead of time before they'll pop up. That way you'll never have to press Esc. |
Beta Was this translation helpful? Give feedback.
-
|
Github Copilot extension contributors, if you were to provide a keyboard shortcut to toggle enabling inline suggestions then the above instructions wouldn't be needed. I highly suggest you provide one! |
Beta Was this translation helpful? Give feedback.
-
|
I too got tired of copilot throwing suggestions in my face and breaking up my mental flow, so I wrote a VSCode extension that makes Copilot STFU when you're writing comments. It might be a better solution than your hotkey fix @jaquinocode |
Beta Was this translation helpful? Give feedback.
-
|
Instead of just disabling comments suggestions it could be better to increase the threshold of confidence required to show the suggestion when you detect that the suggestion is entirely commented out text, because when Copilot completes a long variable names in a comment is useful. |
Beta Was this translation helpful? Give feedback.
-
|
I would love to see this feature. In 99% cases the comment suggestions are incredibly disruptive, useless and annoying. In the remaining 1% they're still disruptive and useless, but at least they're so absurd they become funny. |
Beta Was this translation helpful? Give feedback.
-
|
This is my #1 feature request. We should be able to disable comments. When writing a comment, I have the "intent to clarify." There's 0 cases out of hundreds where Copilot correctly guessed this intent (IMO this isn't possible by definition), so it's either a source of amusement or noise, and devalues what it's actually good at. |
Beta Was this translation helpful? Give feedback.
-
|
Big +1... the comment suggestions are hilariously wrong and really distracting. I haven't had a single one that's even related to what I want to actually write. And my brain auto-reads whatever pops up, which hijacks my thought process. I'd love the ability to disable inline suggestions for all comment blocks. I'm disabling copilot for now until this is supported. |
Beta Was this translation helpful? Give feedback.
-
|
I'd really like to disable comments-completion in JetBrains editors as well. |
Beta Was this translation helpful? Give feedback.
-
|
+1 on this. Very distracting. Is providing an option here on a roadmap anywhere? I like Copilot enough to keep it enabled but I find myself looking away from the computer screen while I type longer comments!! I guess it's good typing accuracy practice. |
Beta Was this translation helpful? Give feedback.
-
|
This is single-handedly keeping me from buying copilot. I comment a lot and this breaks my flow entirely. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the feedback, y'all. What I'm hearing is:
|
Beta Was this translation helpful? Give feedback.
-
|
perhaps copilot could be set so if you start the line double comment chars (for example ## instead of just #), copilot would know not to suggest anything? that would allow for in-the-moment disabling without having to start/stop the extension. |
Beta Was this translation helpful? Give feedback.
-
|
I do occasionally have situations where Copilot produces useful completions in comments, so I don't want to completely disable it in comments. But I agree with the original poster that it's distractingly noisy at the moment. So I think that ideally, Copilot would suggest completions in comments only when it's reasonably sure about them. |
Beta Was this translation helpful? Give feedback.
-
|
This really needs to be an option. I just started trialing Copilot and I've already had to disable inline autocompletion on everything solely because of the distraction it causes when autocompleting comments. The existing workarounds aren't great for a paid product. |
Beta Was this translation helpful? Give feedback.
-
|
@ryanjsalva It's 2024 and this issue remains unresolved. I can only assume the delay for fixing this is due to expectations that Copilot will over time provide more helpful comments. However, it's important to note that the concern isn't solely about verbosity but rather about accuracy in understanding user intent. // Unsubscribing yet again |
Beta Was this translation helpful? Give feedback.
-
|
I disabled copilot due to this issue despite my company purchased the enterprise license. |
Beta Was this translation helpful? Give feedback.
-
|
Kinda nuts that 3 years on, this issue, which is by far my number 1 gripe with Copilot, and sounds like it is for many others, is still not only unresolved, but hasn't had any comments or acknowledgment from the Github team in more than a year and a half (and thank you, @ryanjsalva, for that, when you did). It would be nice to have some kind of idea of whether this is even on the radar, and if so, for what kind of schedule. |
Beta Was this translation helpful? Give feedback.
-
|
For those struggling with this, I personally have found the keybind |
Beta Was this translation helpful? Give feedback.
-
|
Just throwing my voice into the wind. The day an AI can write a comment for me is the day I'm obsolete, so I'll never need this distracting feature. Attention is the only currency. |
Beta Was this translation helpful? Give feedback.
-
|
+1 pls @ryanjsalva |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
If AI is so good at writing code like Github's report says it is, shouldn't this be a trivial feature to implement by the Github team? Clearly no one wants autocomplete in comments. How is it still here? |
Beta Was this translation helpful? Give feedback.
-
|
I had disabled all inline suggestions but was still seeing the prompt to press command-I to continue with copilot. I was finally able to disable it using the experimental setting: Features > Chat > Inline Chat: Line Natural Language Hint (akak inlineChat.lineNaturalLanguageHint). This is in Code Insiders. |
Beta Was this translation helpful? Give feedback.
-
|
I found the best solution for me. In my case I have managed to take advantage of almost 1% of the time writing code without help, although it is true that the blame for this is the time lost by annoying suggestions in the comments. Goodbye GitHub Copilot |
Beta Was this translation helpful? Give feedback.
-
|
I've found a workaround is to type an uncensored swear word at the start of the comment, e.g. "Copilot **** off." FWIW I think it's the swear word itself that's stopping the suggestions, but personally I find my way more satisfying. |
Beta Was this translation helpful? Give feedback.
-
|
Just adding my voice to the chorus of developers asking for this. I don't see why this is taking so long. |
Beta Was this translation helpful? Give feedback.
-
|
The issue I have is with overly obvious comments that are part of an otherwise correct suggestion for the next line. Like these I'm looking at right now: |
Beta Was this translation helpful? Give feedback.
-
|
So where's the issue we should vote up? Is there any point in upvoting what we all agree on in here? |
Beta Was this translation helpful? Give feedback.
-
|
Oh, right, I use the extension "Disable Copilot Completions in Scopes"! |
Beta Was this translation helpful? Give feedback.






Uh oh!
There was an error while loading. Please reload this page.
-
This product is really incredible. The one thing I would like to have is the ability to disable these two behaviors upon will:
-disable comment auto-complete - I like to write my comments myself and a suggestion that appears on screen distracts the thought process because I automatically read it
-disable suggestion of functions when nothing is being typed. I find that when I'm inside a class between methods, CoPilot starts suggestion full methods without nothing being typed. I don't want this because I constantly have to hit esc to stop suggestions. Please see the attachment. This sometimes happen, sometimes not (don't know the reason yet).
Both are related to CoPilot trying too much and this requires my constant attention and becomes a distraction.
But I really like the method and code line autocomplete, they save a ton of time so just some checkboxes to limit the feature functionality would be nice.
Beta Was this translation helpful? Give feedback.
All reactions