Displaying camel cased words as such with underscores in Eclipse

To me, reading long camel cased words can sometimes be a bit frustrating. For example:

aReallyLongCamelCasedMethodNameWhichIsTooSelfDescribing

Now, look at this version:

a_Really_Long_Camel_Cased_Method_Name_Which_Is_Too_Self_Describing

Which version is easier on your eyes? The second one is for mine.

While using Emacs, I stumbled upon a nice minor mode called glasses mode.

Since I'm working primarily with Java, I'm an Eclipse user and I wonder if there is some way to display camel cased words with underscores?

Note that I'm not asking for a way to actually convert camel cased words as described, I'm just looking for a mechanism that works like Emacs' glasses mode in Eclipse.

A regexp to actually do the conversion can be found by googling "Convert camelCase to underscores".

6
задан darioo 27 October 2010 в 20:00
поделиться