How can I create an intention action without showing an annotation?
Example:
I'm trying to implement Java-like base conversion, and what I've done is to `createInfoAnnotation` and `registerFix`.
Pic (why I can't use markdown syntax?): https://files.gitter.im/JuliaLang/julia/91UB/thumb/image.png
`createInfoAnnotation` creates an annotation that displays its second parameter, and I know if the second parameter is null the intention will not be displayed and the quick fix will not be available.
What I want is to make the quick fix avaiable but not showing anything (currently it shows a hint with a lighbulb, I don't want this) until the user pressed `Alt`+`Enter` on the place where the intentionAction is available, just like base conversions in Java. How to implement that?
请先登录再写评论。
The hint with light build is displayed for all intentions, actually there is a setting Preferences | Editor | General | Appearance | Show intention bulb so users may configure it. So it would be more consistent if you follow the general rules with the intentions. BTW for intentions you may create com.intellij.codeInsight.intention.IntentionAction.
Anna