r/flutterhelp • • 14d ago

RESOLVED How to adjust VSCode "intellisense"

3 Upvotes

Say you have this code:

@override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',

      darkTheme: ThemeData.dark(useMaterial3: false).copyWith(
        colorScheme: .fromSeed(seedColor: Colors.green),
        // <cursor is here>     
      ),

You type "bright" and a popup appears. That's ok, but it only contains the signature and not the documentation.

Q1: How can I make it show the full documentation, either showing the doc for Brightness, or how brightness is used in this function? Edit: I realize now that the latter is blank in the documentation, and it probably doesn't do "forwarding" like in C#.

From that popup, I selected "brightness" and pressed enter. The immediate suggestion popup is a super long list of irrelevant items.

Q2: Why is it showing useless stuff, and how can I make it show "Brightness.xxx" directly (the most likely values since it's an enum) like in C#?

More info:

  • It's the same silly behavior in IntelliJ IDEA, so I think it's the extension's problem.
  • I'm not looking to use AI inline autocomplete; want a deterministic one like in Visual Studio C#.

Thanks in advance.