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 should automatically appear in strings when typing $ or ${

See original GitHub issue

Assume a class foo:

class foo {
   static const var1 = 42;

   void bar() {
      print('foobar: ');
   }
}

Now try to extend the string inside print from 'foobar: ' to 'foobar: $var1'.

After typing $v I would expect to be able to code complete to $var1, but that does seem to happen.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
DanTupcommented, Dec 20, 2017

@Skylled Good call! We actually set trigger characters for completion. They’re currently ".", ":", " ", "=", "(" and it seems like adding $ and { causes the completion event even without the setting mentioned above.

I’ll do a little more testing later, but I think adding these is a better idea than override the setting.

0reactions
DanTupcommented, Dec 20, 2017

Seems to work well with no negatives in my testing; so I’ve added those chars.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code completion | IntelliJ IDEA Documentation - JetBrains
Type the initial string and do one of the following: Press Alt+/ or choose Code | Code Completion | Cyclic Expand Word to...
Read more >
Auto-completion - Notepad++ User Manual
Notepad++ offers automatic completion of various sorts of text after you have entered an initial substring (or prefix), which can save you having...
Read more >
IntelliSense in Visual Studio Code
The editor supports "tab completion" which inserts the best matching completion when pressing Tab. This works regardless of the suggest widget showing or...
Read more >
[typescript autocomplete] take "literal" | string as a hint ... - GitHub
Autocomplete is not shown automatically, triggering it with <ctrl+space> shows a bunch of strings used in the project: "random string 1"; " ...
Read more >
Code Completion - IBM
Typing curly braces will auto indent to accommodate indentation of blocks. When you type an opening curly brace and hit enter, tabs will...
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