add a popup to inlay Hint

已回答
i have inlay Hints of renderer class A and want to add a pop up to it that's displayed whenever a mouse is hovered over that renderer A inlay Hint.
0

There are various methods in com.intellij.codeInsight.hints.presentation.PresentationFactory to change onHover/onClick behavior.

0

I am not understanding how to use this. can you provide a sample code?

0

hello??? can you help? i am not able to find any sample code

0

There are some usages in IJ Community sources, e.g. com.intellij.refactoring.introduceParameter.IntroduceParameterHelperKt#createDelegatePresentation

0

I am not able to understand it. I have a editor and I am adding inline and blocks inlay hint using editor.inlayModel.addInlineElement(). how to proceed after that?

0

See com.intellij.internal.AddInlayInternalAction

0

请先登录再写评论。