flutter / flutter/flutter-intellij

document the difference in behavior in code completion between selecting items with tab or enter

Open
#944 8 comments 0 reactions 0 assignees View on GitHub
docs
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

```dart
class Thing {
int firstOne;
int secondOne;
Thing(this.secondOne);
}
```

Place your cursor between 'Thing(' and 'this' i.e. `Thing([CURSOR]this.secondOne)` Type `this.`, press `Tab` and notice how you end up with:

` Thing(this.firstOne.secondOne);` instead of `Thing(this.firstOne[CURSOR]this.secondOne);`

Or maybe even better would be `Thing(this.firstOne, [CURSOR]this.secondOne);` since it should be able to tell what I'm doing. :)

@pq told me to start filing these cases where IntelliJ autocomplete unexpectedly eats things after my cursor.

I feel like I'm used to other auto-complete systems never affecting anything after my cursor, but maybe I'm remembering wrong?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.