question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code-completion options for children: omit the List as (only) option

See original GitHub issue

Not sure exactly what we should do here, but since List<Widget> is the only thing I can given to children:, should we provide a single code-completion option, when trying to code-complete after children: ?

screen shot 2017-03-16 at 2 39 50 pm

I think I would expect a single response, something like: <Widget>[] and if I select that, my cursor is inserted in between the brackets.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
stevemessickcommented, Mar 23, 2017

What I meant was: If you’re going to complete ‘child’ then go ahead and insert the empty list, too. If you’re asking for completion after ‘children:’ then just insert the list.

On Thu, Mar 23, 2017 at 10:03 AM, Phil Quitslund notifications@github.com wrote:

Do both? I can type children: fast enough I probably wouldn’t use the completion.

but how fast can you type children: <Widget>[]? 😉

By “do both” do you mean have the Row completion fill out the children: bits too? If so, working on that as well!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/flutter/flutter-intellij/issues/832#issuecomment-288789217, or mute the thread https://github.com/notifications/unsubscribe-auth/AIH6jRzmSqOh5QpJSTXUbsTijkU0Bfa_ks5roqXggaJpZM4Mf6qK .

0reactions
pqcommented, May 10, 2017

Given that we now complete children: with an empty Widget list, I think this is a non-issue. In any event, let’s see how people get on in the new world and re-visit if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

15.10 - Using Code Completion - SQL Assistant - Docs Teradata
1 Select Tools > Options. 2 Select the Code Editor tab. 3 Select Display Suggestions. 4 [Optional] Select Include Table names. Only Views...
Read more >
Code completion | PyCharm Documentation - JetBrains
Smart type-matching code completion filters the suggestions list and shows only the types applicable to the current context.
Read more >
Flutter — Visual Studio Code Shortcuts for Fast and Efficient ...
You can find the list of default keyboard shortcuts and also search ... can use Ctrl+Space to get a list of curated code...
Read more >
Edit and refactor C++ code in Visual Studio - Microsoft Learn
Use the C++ code editor in Visual Studio to format, navigate, understand and refactor your code.
Read more >
C/C++ extension FAQ - Visual Studio Code
A third option for projects without build system extension support is to use ... the compilation information listed in that file to configure...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found