How to Fix “Mark Occurrences” in Eclipse?

前端 未结 7 646
孤街浪徒
孤街浪徒 2021-02-02 10:02

Eclipse is a great editor, and among it\'s many wonderful features one of my favorites is the Mark Occurrences feature. However, I recently installed the Aptana plug-in, and in

相关标签:
7条回答
  • 2021-02-02 10:44

    There is another way to toggle the Mark Occurrences feature (apart from Preferences -> Java -> Editor -> Mark Occurrences)

    Simply click the "Toggle Mark Occurrences" button from the toolbar. This can be seen in the image below. If you don't see the item in your bar you can turn on by selecting Window > Perspective > Customize Perspective... > Editor Presentation > Toggle Mark Occurrences

    You can use a keyboard shortcut to toggle it, also:

    • On Windows: Alt + Shift + O
    • On OS X: Option + Command + O

    Hope that helps

    enter image description here

    0 讨论(0)
  • 2021-02-02 10:45

    Check the following preference setting:

    Preferences > General > Editors > Text Editors > Annotations

    In here compare the settings for Occurrences and Write Occurrences.

    You probably don't have the Text as higlighted option checked

    0 讨论(0)
  • 2021-02-02 10:52

    If the option mentioned by laurie is checked and you're wondering why it isn't working, you might have hit Alt-Shift-O sometime:

    Cannot highlight all occurrences of a selected word in Eclipse

    Note, that "Organize Imports" has Ctrl-Shift-O...

    0 讨论(0)
  • 2021-02-02 10:58

    Go

    Java> Editor > Mark Occurrences

    Uncheck "Keep Marks when the section changes" then click Ok

    Restart Eclipse.

    This work for me.

    0 讨论(0)
  • 2021-02-02 10:58

    Double click on the class or the package in it disappears. Have no fear.

    ( I also activated this feature by mistake while pressing selecting a word)

    0 讨论(0)
  • 2021-02-02 11:00

    and eclipse won't highlight occurences if your project contains errors check the Problems view to be sure you project is clean

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