Quick Definition

How to implement / fine tune quick definition popup content?

This is the popup accessible through main menu: View / Quick Definition.

Currently the popup opens and displays the current line. I'll try to display the definition.

Thank you kindly.

6 comments
Comment actions Permalink

You need to implement a searcher for the DefinitionsScopedSearch extension point.

0
Comment actions Permalink

Thank you Dmitry. I appreciate this.

0
Comment actions Permalink

nearly there:

Only the first line of the definition is displayed.

A block element with full definition is passed to Processor<PsiElement>.

Could it be that quick definition view stops at \n? How to change this?

0
Comment actions Permalink

Hi Imants,

I believe you need an implementation of com.intellij.codeInsight.hint.ImplementationTextSelectioner.

Cheers,
Colin

0
Comment actions Permalink

Cheers Colin, I'll try ImplementationTextSelectioner.

update: yes, ImplementationTextSelectioner did it.


Thank you very much, Colin and Dmitry!

0
Comment actions Permalink

Just wanted to +1 this as I was having the exact same behavior and this obviously fixed it for me.  Thanks!

0

Please sign in to leave a comment.