How to display Hint (Tooltip) for resolved PsiReference on Ctrl + MouseOver
This might look trivial, yet I didn't find out how...
I have a properly resolved PsiReference in my custom language:
- element is correctly underlining on Ctrl+MouseOver
- mouse cursor is changing to pointer hand
- navigation to referenced PsiElement is properly working
I want to be able to display a hint when pressing Ctrl and holding the mouse pointer over it, like java navigation behaves in IDEA.
Would appreciate any help.
请先登录再写评论。
return your implementation of
from your
Thanks Jay! Works fine.
Is there a way do some text formating here? Like "...
i think that this tooltip is just a text.
but i have not tried to format it.
i know that javadoc popup (ctrl+q) has pure html formatting
Indeed. It is just a text. The only formatting applicable here is multi-row.. using "\n"