5

Hey guy, I haven't let this get to me till now. My Eclipse used to show me where I used other global and local variables when I clicked on one of them. It doesn't anymore. I looked at General>Appearance>Colors and Fonts. In the Java folder I find something that looks like what I want. It's the Colored Labels - match highlight. The description says: The background color used to highlight matches when colored labels in Java views are enabled. I looked for that in the Java> How that's so weird I can't find it again as I'm writing this message. Anyway I guess that's what I'm looking for. Enabling the colored labels in Java. Where is that?

3
  • 6
    try to toggle mark occurrence by pressing ATL + SHIFT + O Commented May 27, 2011 at 6:13
  • 2
    That should be what you need. Just one thing: did you click the "toggle mark occurrences" button in your toolbar (default shortcut is Sfift+Alt+O - letter O, not digit 0) Commented May 27, 2011 at 6:18
  • 1
    Man that was it thanks guys. I noticed I hit Shift+Ctrl+O to organize my imports and I have messed that up sometimes. I must have stopped messing up and with Sfift+Alt+O as I turned it off. Thanks again. Commented May 27, 2011 at 6:29

2 Answers 2

3

To access to your variable location: you have to click on your variable and maintain the "ctrl" hitted. for color: right click in your java class, go to "open with" then select java editor, if the color's problem persist go to Windows>preferences>Java>Editor ther click "restore default" or specify your editor, then click ok. Hope that my intervention helps you.

Sign up to request clarification or add additional context in comments.

Comments

2

I tried window -> preferences -> java -> editor -> mark occurrences -> and selected all options.

Now it works.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.