Wrap string concatenation
Have the option to set max length for concatenation string. I've seen this implemented in SQL Beautifier and it helped legibility on long strings.
User should be able to choose max length of characters before wrapping begins, then wrapping begins with + at beginning of line.
It changes string from long string that user must scroll or have word wrap affect.
BEFORE:
,comment_string = 'Sample text' + 'Sample text' + 'Sample text' + 'Sample text' + 'Sample text'
to:
,comment_string = 'Sample text' + 'Sample text'
+ 'Sample text' + 'Sample text'
+ 'Sample text'
This would be great to have!
-
AdminDevart (_, Devart) commented
Hi,
Thanks for your patience!
Just want to inform you that it is already implemented.
The settings are in the formatting profile, jut search for "Line Break BEFORE/AFTER JOIN" keyword.
So we would like to suggest updating to the latest version and check there.
Best,
Devart Support Team
-
Sheldon commented
Long concatenation statements are hard to read with DBForge's current formatting of this syntax. I like the autowrap (Max length designated) that SQL Beautifier offers on this.