You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IntelliJ with Dart plugin does not show suggested imports for packages "as you type" when you declare a class that has not yet been imported in the file.
If however you fully type the class, cancel the auto suggest, then ALT+ENTER you get suggested import
The auto complete suggestion works if you declare a new instance of the class though
This behavior applies to any packages be they from dart sdk, external packages referenced in pubspec.yaml, even classes in different files in the same project.
Coming from using IntelliJ for Java dev, I am so used to just typing the first few letters and having access to all glorious possible suggestions that the way this works in Dart makes coding feel cumbersome as now you have to know the exact entire name of the class you want to import and when you don't you have to go look at the name of the class inside the package you want and then paste it in at which point you might as well copy the package path and declare an import for that.
It would be a huge improvement to the coding experience if it could work like Java... possible?
Dart VM version: 2.1.0-dev.6.0.flutter-2aac05fe10 (Fri Sep 28 16:29:23 2018 +0000) on "linux_x64"
The text was updated successfully, but these errors were encountered:
Yes looks like the same thing, Perhaps we should repost the contents in #25820 as maybe the visuals paint a better picture of how the behaviour works for Java vs Dart?
Also for me the title of that ticket is something I would never have found in reference to this. I tried searching for this issue as being logged, but my search terms were all around intellij and auto complete / suggestions / imports...
IntelliJ with Dart plugin does not show suggested imports for packages "as you type" when you declare a class that has not yet been imported in the file.
If however you fully type the class, cancel the auto suggest, then ALT+ENTER you get suggested import

The auto complete suggestion works if you declare a new instance of the class though

This behavior applies to any packages be they from dart sdk, external packages referenced in pubspec.yaml, even classes in different files in the same project.
Coming from using IntelliJ for Java dev, I am so used to just typing the first few letters and having access to all glorious possible suggestions that the way this works in Dart makes coding feel cumbersome as now you have to know the exact entire name of the class you want to import and when you don't you have to go look at the name of the class inside the package you want and then paste it in at which point you might as well copy the package path and declare an import for that.
It would be a huge improvement to the coding experience if it could work like Java... possible?
Dart VM version: 2.1.0-dev.6.0.flutter-2aac05fe10 (Fri Sep 28 16:29:23 2018 +0000) on "linux_x64"
The text was updated successfully, but these errors were encountered: