I created this Dart Class in Visual Studio Code:
class User {
String userId;
String info;
}
Ctrl
+ .
not opening the quick fix
menu for a quick constructor.
Any suggestions on how to show all of the quick-fix options? like this -
Add this extension on visual studio code Dart Data Class Generator. Execute on vscode ctrl + p and paste ext install BendixMa.dart-data-class-generator
That feature does not derive from the official Dart library extension, You should install this extension from Visual studio marketplace : from this link
if installed then try Ctrl + .
within class and select Generate constructor.
you can follow below numbers to quick fix the
I have the same problem; The extension is installed but I still only have 'Convert class to a mixin'.
Edit: I restarted VSCode and the extension started to work. You may also need to clear workspace cache.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With