简体   繁体   中英

How do I change ONLY java modifier text color in Eclipse?

I'm having a problem with the syntax coloring for Java in eclipse. I'm trying to change the text color of JUST the java modifiers in eclipse (like public, protected, private), but eclipse's preferences have me change all keywords that are not 'return' into one color. i'm trying to do this because my modifier and return type are right next to each other and i'd like them to be different colors. Any help would be much appreciated. Thanks!

As far as I can tell this is not possible which is bizarre because you can for PHP (the default theme has green for public, mustard yellow for protected and red for private, which I would like for Java).

I've tried themes, too but there just seems to be the one option for Java.

You can only change those which you find under Windows>Preferences>Java>Editor>Syntax Colouring Here modifiers are contained by group "Keywords excluding 'return'". There is no separate group for just modifiers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM