code-d icon indicating copy to clipboard operation
code-d copied to clipboard

Feature Suggestion: Showing the type of a variable on hover

Open AntonC9018 opened this issue 3 years ago • 4 comments

I often find myself in need of knowing the type of an auto declaration, especially when working with Phobos, where the returned type of most functions is implied by the compiler. In such cases I do pragma(msg, typeof(variable)) and then compile my code to spot the type in the output, which is annoying. A far more convenient feature would be to see the type of a variable by hovering the mouse over it. Is this even possible to implement with the current state of things?

AntonC9018 avatar Aug 26 '21 20:08 AntonC9018

duplicate of Pure-D/serve-d#140

WebFreak001 avatar Aug 27 '21 07:08 WebFreak001

@WebFreak001 that still shows their types as auto, so it's not the same.

AntonC9018 avatar Aug 27 '21 07:08 AntonC9018

the issue there is still open, it hasn't been fixed yet

WebFreak001 avatar Aug 27 '21 09:08 WebFreak001

reopening until upstream serve-d issue (https://github.com/Pure-D/serve-d/issues/140) is fixed

WebFreak001 avatar Apr 12 '22 14:04 WebFreak001