Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SonarLint hint hiding Eclipse tooltip

I'm using SonarLint 1.3 in Eclipse Mars. My problem is when there's an SonarLint issue it prevents every other tooltip from appearing.

Example: as you can see tooltip for Hashtable is not shown because of SonarLint hint.

SonarLint issue hiding Eclipse tooltip

Is there a way to show both Eclipse tooltips and SonarLint hints?

like image 886
Alex Avatar asked Feb 22 '16 12:02

Alex


2 Answers

This is standard Eclipse behavior that problem marker tooltips will have higher priority than JDT Hover tooltips.

If you want to force JDT tooltips to be displayed it is possible using some keybord shortcuts. Look in Eclipse preferences for Java -> Editors -> Hovers

For example to see the Javadoc tooltip that is displayed on Hashtable when there is no SonarLint issue you should press Ctrl+Shift

Example: enter image description here

like image 66
Julien H. - SonarSource Team Avatar answered Oct 24 '22 00:10

Julien H. - SonarSource Team


The simplest solution I found is to "show view" javadoc. By doing this you will be able to see SonarLint tooltip and the code fragment-related javadoc in the javadoc view when you placed your cursor inside the code fragment. Yes, this is NOT actual "hovering", I know, but this is the only way I found so far.

like image 1
Alex Gordon Avatar answered Oct 24 '22 01:10

Alex Gordon