code-d
code-d copied to clipboard
Feature Suggestion: Showing the type of a variable on hover
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?
duplicate of Pure-D/serve-d#140
@WebFreak001 that still shows their types as auto
, so it's not the same.
the issue there is still open, it hasn't been fixed yet
reopening until upstream serve-d issue (https://github.com/Pure-D/serve-d/issues/140) is fixed