When I wish to use SQL queries in Java, I usually hold them in final String variables. Now, when the string is too large, it goes out of page breadth, and we either have to
When you are in SQLDeveloper, select the query and use Ctrl + F7 to format it. Select it again and use Ctrl + Shift + F7 to advance format it, choose Clipboard for output destination, output type as desired type and click Apply. Now, paste it in Eclipse editor and see the difference.
I'm using Version 3.1.07 of SQLDeveloper.