Expandable\Collapsable Tooltip
已回答
I want to create a tooltip similar to those that have the "more... (Ctrl+F1)" and "less... (Ctrl+F1)" functionality. Which class can I use to do this?
Is this possible for the components in a tool window or can this only be done in the editor?
请先登录再写评论。
All this API is quite tied to the Editor UI, but you might be able to reuse some UI classes like com.intellij.ui.LightweightHint. The actual code for this is in com.intellij.codeInsight.hint.LineTooltipRenderer#show
@... Could you point me to any examples of the tooltip implementation? For my custom language plugin, I need to show documentation about some of the tokens which could be hyperlinks. Right now, I'm using Annotation but the UI is very mediocre. I need to have the UI enriched and also capable of showing html like links. BTW, I've just started with IntelliJ plugin development and following the tutorials.
Venbigdata, please check the Documentation section in our docs.