How can we help you today? How can we help you today?

formatting if else if statements

I want the formatting to be as follows:
IF ()
STATEMENT
ELSE IF ()
STATEMENT
ELSE IF ()
STATEMENT
ELSE
STATEMENT

However, currently, it formats like this:

IF ()
STATEMENT
ELSE
IF ()
STATEMENT
ELSE
IF ()
STATEMENT
ELSE
STATEMENT
Is there an option that fixes this?
russ0519
0

Comments

1 comment

  • Ali D
    Hi

    Thanks for posting. It looks like the forum might have stripped out some of the whitespace in your examples. We have a UserVoice request for controlling how nested IF ELSE statements are formatted here:

    https://redgate.uservoice.com/forums/94 ... ing-of-els

    If this looks like the same formatting style that you would like, please add your vote and you’ll get notified as soon as we release a build with this functionality included. We’re currently hard at work developing a new, more powerful formatting engine.

    Thanks
    Ali
    Ali D
    0

Add comment

Please sign in to leave a comment.