I use code formatting command (Ctrl + Shift + F) a lot in Eclipse IDE. While this works pretty well for Java / CSS source codes, the JSP formatt
So what I found out was, that eclipse reformat's jsp files by methods not line by line. Only if it can reformat the entire method properly it will try. For example if you have this kind of code in the method.
+ message + "
The refactor wont happen.
You need to make it to
And now refactor will work. To this