Change formatting of IF statements.
When an IF is short and does not have a BEGIN END on it, have it format to a single line.
Right now if you have
IF @Parameter1 = 0
RETURN -1
IF @Parameter2 = 0
RETURN -2
I would like it to be:
IF @Parameter1 = 0 RETURN -1
IF @Parameter2 = 0 RETURN -2
which would make it more compact.
23
votes
Brien King
shared this idea
This feature was released in version 8 of SQL Prompt.
If there are any missing features please let us know by creating a new suggestion.
Kind Regards,
The Prompt Team
-
Tom Pester commented
+2 This makes it even more obvious that only the next statement is executed and not the second if you don't add a BEGIN/END. And it makes the code more compact without loss of maintainability.