[VS2022] Refine Suggestion Behavior (like IntelliCode line completion) #14157
Unanswered
CinderScript
asked this question in
Copilot Conversations
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The Problem
Right now, I can either benefit from Copilot or IntelliSense word suggestions, but often, not both. Copilot is pretty awesome, but word suggestion autocomplete is currently more useful because it saves me the most keystrokes overall. Right now, if I want a word autocomplete suggestion and copilot is already suggesting a complete line, the only way to get word autocomplete is if I type a letter that doesn't match the copilot suggestion. This isn't ideal.
Solution
I would say that whenever I keep typing through a Copilot suggestion, I obviously don't want what it is showing, so it should stop the suggestion and allow me to use a word autocomplete suggestion. When I type a letter that matches the Copilot is suggestion, copilot should understand that the current word is still an option, but I don't want the rest of the line. After I type one or two letters of the Copilot suggestion, Copilot should only keep that word and remove the rest of the line. I should be able to hit [tab] and submit only the current word.
Example
Consider the following code:
On the next line Copilot suggests:
Which is awesome! But I don't wan't that - I want:
That means I need to type every letter in "public Vector" before Copilot gets the hint. With Copilot off I only have to type:
Visual Studio IntelliCode Completions
Take a look at IntelliCode line completions - this is the behavior you want (or similar). If I type a letter that is being suggested, then the current token is italicized, and [tab] prints only that word, and the rest of the suggested line remains. Hitting [tab] twice would fill in the whole line if I accidentally typed a letter before realizing the suggestion was what I wanted.
Beta Was this translation helpful? Give feedback.
All reactions