4 ms·
The suggestion to right-align the root keywords (e.g. SELECT, FROM, WHERE) and left-align everything else does make the SQL look good. But I can't think of a s
by jawns 10y ago
The suggestion to right-align the root keywords (e.g. SELECT, FROM, WHERE) and left-align everything else does make the SQL look good.
But I can't think of a single editor that makes this type of alignment formatting easy to do. Can you?
- rspeele 10y agoemacs C-u M-x align-regexp can do this, if you give it a regexp matching the keywords you wish to right-align and enter -1 when prompted for "group to modifiy". It would still be a hassle though.