Is there any way to disable GitHub Copilot comment suggestions?

Viewed 1016

I really like Copilot however its comment suggestions can be nonsensical and really distracting.

Is there any way to leave the code suggestions on but turn Copilot off whenever I'm editing/adding a comment amidst the code?

2 Answers

I was annoyed at this too, and failed to find a decent automated solution anywhere on the web. So, I wrote a VSCode extension that watches the TextMate scopes wherever your active selection is, and if it detects a scope that contains comment, temporarily disables Copilot's inline suggestions until your caret is anywhere without a scope that contains comment.

Or, in short, it makes Copilot get out of your way whenever you're writing a comment, and lets it do its magic everywhere else.

Hopefully you can find some use for it as well.

https://marketplace.visualstudio.com/items?itemName=disable-copilot-comment-completions.disable-copilot-comment-completions

Related