Skip to content

Partial suggestion acceptance - Github Copilot  #140708

Closed

Description

@SmallLemur

When using Copilot, users would like to be able to only partially accept suggestion instead of the whole suggestion at once.
The users demand either word by word or line by line completion.

Desired behaviour:
Press a predefined key and accept the whole suggestion.
Use a predefined combination of 2 keys to accept the top line of the suggestion. (eg: For a suggestion of 3 lines, the user would need to press the combination 3 times to accept the whole suggestion). The prompt would not show the line already accepted.

Activity

  1. added
    feature-request
    on Jan 14, 2022
  2. isidorn commented on Jan 14, 2022

    @isidorn

    SmallLemur this sounds to me like a UX problem. Is there a mock sketch for a potential solution here? Is there some other editor which already supports this?
    We can also discuss it in one of our UX weekly meetings.

  3. SmallLemur commented on Jan 14, 2022

    @SmallLemur
    Author

    Isidor Nikolic (@isidorn) I don’t have a mock sketch. No other editors are supporting this yet but it is a requested features. I wanted to get the discussion going (doing the same for the other editors) to understand the constraints around it as well.

  4. hediet commented on Jan 17, 2022

    @hediet
    Member

    Technically, I think this would be rather easy to implement. I'd love to hear some more UX discussion before we implement this thought.
    What key-binding do you have in mind?

  5. isidorn commented on Jan 17, 2022

    @isidorn

    SmallLemur do you have some UX designers on your team that would like to help here? Once we have some good ux proposal we can bring it in our UX weekly sync on Wednesday to start the discussion.

  6. SmallLemur commented on Jan 20, 2022

    @SmallLemur
    Author

    Isidor Nikolic (@isidorn) No I dont have a UX designer in my team. I ll see how i can come up with a suggestion and get back to you

  7. YitziG commented on May 18, 2022

    @YitziG

    This is similar to zsh-users/zsh-autosuggestions#265. Solution for me was 'CMD + ->' to accept a word at a time.

    Something similar here would be great.

  8. alloy commented on Jun 16, 2022

    @alloy
    Member

    Fish shell allows word-by-word completion using the Alt + → key-combo, which—at least on macOS—is used system-wide for navigating text word-by-word. I notice that I keep trying to automatically use this key-combo, so big +1 from me.

    (This should perhaps be a feature that would need to get generic support from VS code? Did not realise this is the vscode repo.)

  9. 19 remaining items

  10. VictorDuranEM commented on Nov 14, 2022

    @VictorDuranEM

    Victor Duran (@VictorDuranEM) would you prefer word-by-word partial acceptance or line-by-line?

    It would be awesome to be able to do both, but if only one of the two is possible, then I would prefer word-by-word.

  11. cmp-nct commented on Nov 17, 2022

    @cmp-nct

    There is no reason why only one would be doable.
    A line based completion is a couple of lines of code.
    Word based completion is half a page if you want to do the word separation smart, or an abstract if it's dumb.

  12. hediet commented on Nov 22, 2022

    @hediet
    Member

    First iteration has been implemented in #166956

  13. added a commit that references this issue on Jan 13, 2023
    f43d956
  14. added a commit that references this issue on Jan 13, 2023
    140004f
  15. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Jan 13, 2023
  16. added 2 commits that reference this issue on Jan 16, 2023
    aefadd7
    7ef08ad
  17. locked and limited conversation to collaborators on Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestinline-completionsinsiders-releasedon-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions