I want to try and implement a key binding much like Ctrl + i
in eclipse for a StyledText
area so that the Java code in the area will be formatted correctly.
I've been looking around for a while and can't seem to find much information on how to implement the indentation. Is there a way this can be done without too much fuss? Or will it involve coding my own formatter with a lot of cases to automatically format what the user types into the area?