Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: Turn on syntax-highlighting for Classes and Objects

Is there any possibility to turn on the highlighting for Classes and Objects in Eclipse like it is in Visual Studio? At the moment only the Variable names are highlighted.

Left: Eclipse, Right: Visual Studio 2012

Image: (http://image-uploader.de/bild.php/9468,unbenanntHU9EZ.jpg)

Visual difference between Eclipse(left) and Visual Studio (right)

like image 244
Philip Giuliani Avatar asked Nov 26 '12 14:11

Philip Giuliani


People also ask

Does Eclipse have syntax highlighting?

The color and font settings can be configured from the Syntax Coloring preferences page, accessed from Window | Preferences | PHP | Editor | Syntax Coloring. Note: Syntax Coloring will also be available for JavaScript elements if JavaScript support was enabled for the project.

How do I turn off syntax highlighting in Eclipse?

Select Window->Preferences->C/C++->Scalability->Disable syntax coloring in editor. Set Window->Preferences->C/C++->Scalability->"Enter scalability mode when the number of lines in the file is more than" to something low (e.g. 10) Close the file and reopen it.

How do you highlight occurrences in eclipse?

All instances where the element is referenced within the file will be highlighted. To configure Mark Occurrences settings: To toggle mark occurrences, click the Toggle Mark Occurrences button. on the toolbar -or- press Alt+Shift+O.


2 Answers

Preferences -> Java -> Editor -> Syntax Coloring

Then just switch on / off what you want highlighted.

like image 61
user136776 Avatar answered Nov 03 '22 00:11

user136776


try this

Window -> Preferences -> Java -> Editor -> Mark Occurrences
like image 25
Festus Tamakloe Avatar answered Nov 03 '22 02:11

Festus Tamakloe