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.

Tooltips obscure the code I'm working on

See original GitHub issue

This may well be a VSCode flaw at its root, but I thought I’d start by flagging it here, since it may be exacerbated by design decisions we’ve made.

I frequently find myself not being able to see the code I’m writing, even though I’m on a large 4K+ display. The following screenshot illustrates this well: image

In this example, I’m currently writing a new test, so am halfway through typing expect. IntelliSense is giving me code completion and documentation on what I’m writing, but since there’s no more room to the right of the code I’m entering, it shows it on the left, obscuring my cursor.

Here’s another example: image

Here I can at least see the line of code that I’m writing, but not the previous lines. This again makes it very hard for me to see what I’m working on.

I imagine the layout algorithm is challenging; from a DartCode side, I wonder whether we need such a large wall of text, which gives VSCode limited opportunity to find a good place for it. A smaller, scrollable region might be better, since Dart is known for its exhaustive inline documentation.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
timsneathcommented, Jun 1, 2022

The extension is cool, although it sometimes only shows some of the data in the tooltip, I suspect for the reasons you note.

I need to turn off the popups though – the extension doesn’t automatically do that, as far as I can tell. Just installing it without further configuration was not the magic bullet I’d hoped for, obviously. Thanks for the tips about Ctrl+Shift+Space / Ctrl+Space – I’ll play around with that.

I’m intrigued by the possibility of a Dart-specific documentation pane. We have such good docs, and a dedicated pane could include useful information (e.g. graphics and hyperlinks) that simply wouldn’t fit in a popup tooltip.

@inmatrix might be interested in this as a topic for UX research.

0reactions
jacob314commented, Sep 28, 2022

I was just wondering about a Dart-specific documentation pane as well. I’d love to see the doc pane include both the doc comment for the class (which typically has a lot more relevant content than the constructor) and the doc comment for the constructor I’ve selected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable tooltip hint in Visual Studio Code - Stack Overflow
I'm using Visual Studio Code v1.63.0 and in Settings I searched for "hover" and, among other things, found "Editor > Hover: Delay" and ......
Read more >
How to Create an HTML Tooltip [+ Code Templates]
Learn why HTML tooltips are a handy interface component and how to add them to your page content with simple code.
Read more >
Hover Delay Setting? - Visual Studio Feedback
At times, these tool tips appear over the item we intend to click on, completely obscuring it! That means we need to move...
Read more >
Can I disable (annoying) tooltips "? <suggestion> Alt + Enter"?
On the Mange tab (right pane of the dialog) select Copy. Then click the C/C++ node. Here you can find the setion that...
Read more >
How to disable tooltips in the code editor as your typing in ...
Microsoft Q&A is the best place to get answers to all your technical questions on Microsoft products and services. Community. Forum.
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