Tab autocomplete while indenting #2987
Labels
area:autocomplete
Relates to the auto complete feature
ide:vscode
Relates specifically to VS Code extension
kind:bug
Indicates an unexpected problem or unintended behavior
"needs-triage"
Before submitting your bug report
Relevant environment info
Description
The tab button generates autocompletes, but often conflicts when I'm trying to indent. A simple example would be if I had the following line:
result = example->model()->bunch()->of()->calls();
But I'm refactoring to make it look like this:
If I move my cursor to the end of "model()" on the original line and hit enter, then it'll look like this:
In this state, Continue will often generate an autocomplete, which is immediately applied when I hit tab to indent that second line. This feels like a footgun, since it's applying suggestions I don't want and I have to be on guard to prevent them.
I don't think Continue should generate an autocomplete if both of the following are true:
I think those two rules definitely identify an indent scenario, although to be honest I'm not sure why you'd want a suggestion if there's text immediately after the cursor in any situation.
To reproduce
No response
Log output
No response
The text was updated successfully, but these errors were encountered: