Eclipse doesn't highlight references anymore

后端 未结 11 1332
离开以前
离开以前 2020-12-07 07:35

I have an odd problem. In Eclipse Ganymede, I used to be able to highlight a variable, and it would highlight the use of that variables in that method. However through some

相关标签:
11条回答
  • 2020-12-07 08:32

    On Mac OS it's opt-cmd-O I pressed that once by mistake, thanks to this question I found my way back

    0 讨论(0)
  • 2020-12-07 08:33
    • In Eclipse Kepler,
      You can simply use the "Toggle Mark Occurrences" icon on the tool bar or you can use keyboard short cut alt+shift+O.

      enter image description here

    • Window > Preferences > Java > Editor > Mark Occurrences. Enable "Mark occurrences of the selected element in the current file" and click Apply.

      enter image description here

    0 讨论(0)
  • 2020-12-07 08:34

    I had a similar problem. I solved it by uninstalling the erlang plugin called "erlide".

    0 讨论(0)
  • 2020-12-07 08:35

    There's a little "highlighter" icon on the toolbar - it toggles "Mark Occurrences".

    From the preferences window, the feature you mean is configured by navigating to:

    Window -> Preferences -> Java -> Editor -> Mark Occurrences

    screen shot

    0 讨论(0)
  • 2020-12-07 08:35

    I had the similar problem where the references were not highlighted, on enabling the mark occurrences in windows-prefrences-java-editor I am able to highlight the references

    0 讨论(0)
提交回复
热议问题