Skip to content

Make Ctrl+E accept inline autocomplete suggestions #4736

Description

@JB11115

Describe the feature or problem you'd like to solve

When an inline suggestion is visible,  Ctrl+E  should accept it, matching common Emacs-style terminal behavior. Otherwise, it should continue moving the cursor to the end of the line.

Proposed solution

Make  Ctrl+E  context-sensitive:

• If an inline suggestion is visible, accept the entire suggestion.
• If no inline suggestion is visible, keep the existing behavior of moving the cursor to the end of the line.

Example prompts or workflows

I type:

Explain the changes in src/

Copilot displays a ghost suggestion:

Explain the changes in src/auth.ts since the last commit

Pressing  Ctrl+E  should accept the full ghost text. If there is no ghost suggestion,  Ctrl+E  should simply move the cursor to the end of the current line.

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text input

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions