Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
NGC13009 opened this issue Jan 22, 2025 · 2 comments
Assignees
Labels
area:autocomplete Relates to the auto complete feature ide:vscode Relates specifically to VS Code extension kind:enhancement Indicates a new feature request, imrovement, or extension "needs-triage"

Comments

@NGC13009
Copy link

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

@sestinj sestinj self-assigned this Jan 22, 2025
@NGC13009
Copy link
Author

Perhaps it would be helpful to consider adding this setting to the document. I believe many users might be experiencing similar confusion and could benefit from a clear solution. This adjustment could make the process smoother for everyone.

@dosubot dosubot bot added area:autocomplete Relates to the auto complete feature ide:vscode Relates specifically to VS Code extension kind:enhancement Indicates a new feature request, imrovement, or extension labels Jan 22, 2025
@EmptyDreams
Copy link

I'm wondering if it's possible to provide more granular support, such as pressing tab to accept all suggestions, ctrl ↓ to complete a line, and ctrl → to complete a word. This way, whether the suggestion is just one line or multiple lines, I can choose to accept only a portion, which is particularly useful when I'm not entirely satisfied with the AI-generated completions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:autocomplete Relates to the auto complete feature ide:vscode Relates specifically to VS Code extension kind:enhancement Indicates a new feature request, imrovement, or extension "needs-triage"
Projects
None yet
Development

No branches or pull requests

3 participants