Eclipse: how to change color of return type in method declarations

It would be nice if the return type of the method would stand out more from the method name using a different color. I tried Window -> Preferences -> Java -> Editor -> Syntax Coloring and what I want doesn't exist. I am wondering if it is hidden somewhere else, or if there is an extension.

+3


source to share


1 answer


I never knew about this ... But I went exactly where you indicated and I was able to change the colors as you described. There is an option for "Keywords excluding" return "(including keywords before the method name, such as" public "and" static "), and" for method declarations "(which is the name of the method itself and is not included by default). There's also one for "Others" which controls the return type (but there are many other things as well, so you might not want to bother with that.) Either way, you can change the colors of one or more of them to get the desired effect.



+2


source







All Articles