Beautify concatenation symbol (||)

Is there a way to use the Beautifier to align concatenation symbols? If so, how? If not, I'd like to request it as an enhancement. Here's an example where we build dynamic sql (this is just a portion of the select clause):

v_select_clause := v_select_clause
|| c_crlf
|| v_tab
|| i_session_id
|| ','
|| c_crlf;

Note that the ||'s would line up under :=, not left-justified.
 
You can do it manually as you are typing. First, do to Tools / Preferences and click on the Editor tab. Make sure that Automatic Indent is checked. Then, after the first line you press Enter and then Tab or space to where you want the next line to start, then type the new line and press Enter and you should be right where you wanted in your example.

I, too, would like special chars to line up on lines that are together (:=, =, (, etc).
 
How can I stop the beautifier destroying my carefully crafted concatenated code generation ?

I have tried to disable automatic beautification - but am still getting my code mangled.

Like Harvey I should like the concatenation symbols to be treated similarly to commas and choose where to have the line split or not.
 
Have you tried this?

v_select_clause := v_select_clause --
|| c_crlf --
|| v_tab --
|| i_session_id --
|| ',' --
|| c_crlf;

The comments should fool the beautifier.
 
Back
Top