Sdk: Dart autocomplete is a real pain

Created on 20 Nov 2020  路  6Comments  路  Source: dart-lang/sdk

Hey guys! Thanks for creating such a wonderful language. However, the completion area could get a little more love.
It should be giving precedence of variables that are inside the context, like variables and parameters.

Check this pictures of me trying to get some auto-complete for the functions's parameter installation:

image

image

image

image

image

Really, this is a real pain and happens all the time. Varaibles with long names always fall on this problem and I have to fully type its name all the time.
If you guys need any kind of reports of logs just ask me and I will be happy to help.

Most helpful comment

Another really annoying one is when I'm filling out params for a method, it never tells me what it's expecting like I would get in C#. It just returns some seemingly random list of methods:
image

I always have to mouse-over, or click-into, the function in order to see what params it takes, and then keep the the types and the order in my mind as I code... it's quite annoying. Main offender here is with builder()'s in flutter, but it happens with any and all widgets really.

If we look at C# in Visual Studio, it very nicely shows me all the methods in the function, and also highlights the one I'm currently on:
image
This would be a great improvement to developer quality of life in dart.

C# goes one step further and filters overloaded method signatures and allows you to cycle through them, but dart is saved that complexity at least!
image

All 6 comments

Thanks for the feedback; can you include the version of the dart sdk you're using?

Sorry I am away of the computer right now to check the version but it is the latest of the Flutter's stable branch.

OK, if you could add the version when you're back at your computer that would be great. I'm assuming it'll be on or around Dart version 2.10.4.

OK, if you could add the version when you're back at your computer that would be great. I'm assuming it'll be on or around Dart version 2.10.4.

I just confirmed it is 2.10.4 . If you need anything else just ask.

I agree.
No matter if in VSCode or Intellij, autocomplete in Dart is not that good.

Another really annoying one is when I'm filling out params for a method, it never tells me what it's expecting like I would get in C#. It just returns some seemingly random list of methods:
image

I always have to mouse-over, or click-into, the function in order to see what params it takes, and then keep the the types and the order in my mind as I code... it's quite annoying. Main offender here is with builder()'s in flutter, but it happens with any and all widgets really.

If we look at C# in Visual Studio, it very nicely shows me all the methods in the function, and also highlights the one I'm currently on:
image
This would be a great improvement to developer quality of life in dart.

C# goes one step further and filters overloaded method signatures and allows you to cycle through them, but dart is saved that complexity at least!
image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rinick picture rinick  路  3Comments

ranquild picture ranquild  路  3Comments

DartBot picture DartBot  路  3Comments

DartBot picture DartBot  路  3Comments

xster picture xster  路  3Comments