Search code examples
eclipsesonarlint

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?


Solution

  • 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