I have couple of ideas how code folding in IDEA could be improved. Probably they
could have sense and somehow they could be integrated into IDEA or somebody will
write appropriate plug-in (I thinks this could be done via OpenApi,
unfortunately I don't have free time to implement it by myself).
1) Collapsing/expanding specific XML tags
I think that folding for XML may be improved if the user will be able to specify
folded regions based on particular XML tag. It will be great if it will be
possible to specify more than one tag that should be collapsed and, of course,
if IDEA will select list of available tags based on opened file.
2) Collapsing/folding of logging related code fragments.
Most logging related code fragments have regular structure. For example, if
Apache commons-logging is used, there are many fragments like this one:
fLog.error("Some Logging related message");
If other logging system is used (say Log4j), the same pattern will be used to.
As for me, it will be absolutely great if IDEA will have appropriate option that
will let the user to specify that logging related statements should be
collapsed automatically (exactly the same as it currently supported for imports
and JavaDoc comments, for example).
Do you think that these features could be usefull?