I'm currently using 6.24.4.1 in Notepad++ and 6.24.03.30 (GUI)/6.24.03.22 (engine release) desktop version and they are both doing the same thing.
Prior to the last update or so, my DECLARE statement would look like:
DECLARE @SQL VARCHAR( MAX ) = '' , @SQL2 VARCHAR( MAX ) = '' , @Type VARCHAR( 6 ) = 'F0004' , @LinkToTable NVARCHAR( 150 ) = 'Something' , @LinkToColumn NVARCHAR( 150 ) = 'Something else' , @LinkValue NVARCHAR( 150 ) = '' , @Start VARCHAR( 2 ) = '6' , @NumChars VARCHAR( 2 ) = '6'
Line break before comma.
Now, however, it is doing this:
DECLARE @SQL VARCHAR ( MAX ) = '' , @SQL2 VARCHAR ( MAX ) = '' , @Type VARCHAR ( 6 ) = 'F0004' , @LinkToTable NVARCHAR ( 150 ) = 'Something' , @LinkToColumn NVARCHAR ( 150 ) = 'Something else', @LinkValue NVARCHAR ( 150 ) = '' , @Start VARCHAR ( 2 ) = '6' , @NumChars VARCHAR ( 2 ) = '6'
I can't find any settings for DECLARE to "fix" it. Everywhere I can find, I have line break before the comma.
Help, please.
Michael
I found the reason for this issue.
Until now I used this option (see screenshot) to control linebreaks before/after comma for Commands like the EXEC.
Now this option is only impacting linebreaks for Parms as it is said in the Panel
I will need to add another option to control linebreak for statements
I would very much appreciate that.
Interesting side note, though... no matter what I have checked, or not checked, in the Before Comma and After Comma checkboxes, it doesn't affect the commas in the declare statement. Wacky. <wry smile>
Michael
Any update on having a new parameter to handle linebreak for statements?
Michael
For SQL Server...
Those are the "only" ones I could think of/find. Yes, most of the rest of them are already covered somewhere, but wanted to be as complete as I could.
There are much more specific ones like CREATE INDEX, etc., but those are a pain no matter what. (I just put --FORMAT_OFF / --FORMAT_ON around them. <chuckle>)
Back to you!
Michael
Sounds like a plan. Thank ya much!!
Michael