Cannot highlight all occurrences of a selected word in Eclipse

后端 未结 12 1343
执念已碎
执念已碎 2020-12-13 05:43

I tried using the Toggle mark occurrences (Alt + Shift + O) button and also in Preferences -> General -> Editors -> Text Editor -> Annotations

相关标签:
12条回答
  • 2020-12-13 05:46

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

    0 讨论(0)
  • 2020-12-13 05:50

    Find the Preferences under Window,

    In General > Editors > Text Editors > Annotations(1)

    (5) is to select the color and press apply.

    Preferences window

    0 讨论(0)
  • 2020-12-13 05:50

    If you go into the window-prefrences, select the language you want/are working with. Select the editor under this specific language and then there is a mark occurrences there that has some options. Where it says keep marks when the selection changes, for me this was checked. When I unchecked it the system started highlighting correctly.

    0 讨论(0)
  • 2020-12-13 05:50

    For folks who are using a dark background with light font colors, you may want to check out the highlight color in Preferences -> General -> Editors -> Text Editor -> Annotations. Mine was defaulted to black, which does not stand out on a black background.

    0 讨论(0)
  • 2020-12-13 05:51

    For Eclipse Mars:

    Window --> Preferences --> Check (Mark occurrences of the selected element in the current file.)

    As shown if figure:

    0 讨论(0)
  • 2020-12-13 05:51
    1. Click the word and hold until a popup appears as shown in the figure.
    2. On the popup, there is a little right arrow, after clicking it, a new icon shows up.
    3. Click that link to open preferences.
    4. Once in preferences, select C/C++ Occurrences (it will be language specific) and select Include in next/previous navigation with Text as Highlighted.

    This should enable the feature of highlighting all occurences of the selected word in the opened file.

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