Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Code formatter in Version 4.2.0.16.260

CarlosDLGSep 30 2016 — edited Oct 3 2016

I installed the 4.2 early adopter version a couple of days ago, and as expected, one of the biggest differences (if not the biggest) I saw was related to the code formatter.

On 4.1, I have my formatter set so that this query:

SELECT * FROM emp WHERE deptno = 10 AND sal > 3000 ORDER BY sal;

gets formatted to:

SELECT *

FROM emp

WHERE deptno = 10

AND sal > 3000

ORDER BY sal;

I don't seem to be able to get the new formatter to produce the same results.

In 4.2 I can't get it to stop adding a line break after the SELECT keyword when I select * instead of individual columns, even though I have that option deselected in the formatter settings (see image below).

Also, for some reason, there is no option to break before boolean connectors, which is odd because "On comma" and "On concatenation" have options to break before, after or no-break, but for boolean connectors the only options are "after" and "no breaks".

Am I doing something wrong, or is there some workaround to get it to format SQL code like in my example above?

Thanks!

formatter-4-2-ea.png

This post has been answered by thatJeffSmith-Oracle on Sep 30 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 28 2016
Added on Sep 30 2016
2 comments
1,100 views