Menu

#96 Mouse hover over variable names shows declaration

closed-fixed
nobody
None
5
2014-12-26
2014-12-06
thomas0774
No

It would be a really helpful feature if hovering with the mouse over a variable (wire / reg / ...) would show its declaration.

Additionally, F3 should also jump to the declaration.

Related

Feature Requests: #96

Discussion

  • thomas0774

    thomas0774 - 2014-12-06

    Indeed. However, it does not work for module inputs/outputs (which I used for testing when playing around with the example design). So it would be nice if support for the inputs/outputs could be added, too.

     
  • Matthew Ballance

    That's an interesting point. I did just confirm that Open Declaration doesn't appear to work for module ports (strange!). Thomas, feel free to file a bug on this. I'll look into correcting this!

    -Matthew

     
    • thomas0774

      thomas0774 - 2014-12-07

      Thanks, I have filed a bug.

      I would like to move attention back to original request (show declaration when hovering): I guess this could be quite simple to implement - just display the line to which F3 would jump to when hovering. (This would display also a comment which is typically right beside the declaration.) (A more sophisticated solution could also display some lines above and below declaration if the include just comments as these comments might be related to the variable)

       
  • Matthew Ballance

    • status: open --> closed-fixed
     
  • Matthew Ballance

    Hover has been enhanced to display multiple types of information. Previously, the hover would appear only if the element had a NaturalDocs comment associated with it. Now:

    • If the element is documented, the documentation is displayed
    • Else information about the element's declaration is displayed

    Giving focus to the hover (move the mouse over the hover box or select F2) allows all the information elements to be accessed via icons at the bottom of the hover. If the selected element is a macro, the expansion of the macro can be shown.

     

Log in to post a comment.

MongoDB Logo MongoDB