Skip to content

Needs line-by-line autocomplete for multi-line prompts, rather than filling the whole thing at once #3821

@NGC13009

Description

@NGC13009

Validations

  • I believe this is a way to improve. I'll try to join the Continue Discord for questions
  • I'm not able to find an open issue that requests the same enhancement

Problem

Currently, the tab autocomplete feature only supports three settings, auto,never and always. in most cases, the model will always prompt a multi-line suggestion, however, I only need to adopt one line. However, if the mode is set to never, then the model will only suggest one line at a time, and there are times when I need to have the model generate more than one line at a time.

Visually, it seems that if it is set to never mode, it will be much less effective for multi-line complements.

So I'd like to support a new option: the model will still prompt for multiple lines, but each time you press TAB, it will only complete one line. This would accomplish the above goal without affecting the multi-line completion, but it would be more convenient to press tab a few more times.


I currently use a compatibility setting to achieve the above. To wit:

On the vsc shortcut settings page, set the shortcut key for editor.action.inlineSuggest.acceptNextLine to tab, and then conditionally fill in the following:

inlineSuggestionVisible && !editorReadonly

will work. This will override the tab auto-complete multi-line command setting for continue, without affecting vsc's built-in tab functionality (e.g. snippet code snippets, smart context-suggestion completion)

Solution

No response

Metadata

Metadata

Assignees

Labels

area:autocompleteRelates to the auto complete featureide:vscodeRelates specifically to VS Code extensionkind:enhancementIndicates a new feature request, imrovement, or extensionneeds-triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions