8

I do like the SQL editor now bundled with Eclipse but I can't seem to find a way for it to format my code like eclipse will with my java.

Did I miss something, or does anybody have any alternatives?

Thanks

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Jason Tholstrup
  • 2,036
  • 3
  • 21
  • 25

1 Answers1

4

This had bothered me in the past, but I shelved it until I saw your question. The DBViewer plug-in seems to do a fairly decent job of this, but I only tested it with basic SQL. For example, it will transform

select * from urbase order by foo;

into

SELECT
        *
    FROM
        urbase
    ORDER BY
        foo

This does the best job out of any that I tested, although there might be better plug-ins out there.

Justin Garrick
  • 14,767
  • 7
  • 41
  • 66