Eclipse does not highlight matching variables

后端 未结 17 2000
忘了有多久
忘了有多久 2020-12-02 04:16

Eclipse does not highlight matching variables for me:

\"enter

I\'ve already tr

相关标签:
17条回答
  • 2020-12-02 05:06

    Using Alt + Shift + o It works for me!

    0 讨论(0)
  • 2020-12-02 05:07

    I had this issue with Eclipse Mars for PHP developers, 64 bit edition for Windows. I now discovered that highlighting works out-of-the-box with the 32 bit version. Even with a fresh download of the equivalent 64 bit build, highlighting does not work. So I will switch back to 32 bit (this is actually not the first problem I observe with Eclipse 64 bit).

    Edit:

    I thought this was the solution, so I installed the 32 bit version in C:\Program Files (x86) and set a shortcut in the "Start" menu. When I started Eclipse from there, highlighting again ceased to work. I now got it working again by deleting the .metadata directory in the workspace (i.e. resetting the workspace settings) and re-importing the projects.

    0 讨论(0)
  • 2020-12-02 05:08

    This is what worked for me (credit to YardenST from another thread): Instead of double clicking file when opening, right click on file -> Open with -> Java editor

    0 讨论(0)
  • 2020-12-02 05:10

    The only that worked for me was:

    Java > Editor > Mark Occurrences:
    Check "Mark occurrences of te selected element in the current file."
    ... and maybe all the ones below.
    
    0 讨论(0)
  • 2020-12-02 05:10

    For PHP you can set

    window > preferences > PHP > editor > mark occurrences 
    

    Please check first checkbox (Mark occurrences of selected element in the current file)


    And also check

    Preferences > General > Editors > Text Editors > Annotations
    

    'Occurrences' and 'Write Occurrences' with different style and color

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