TaoK / PoorMansTSqlFormatter

A small free .Net and JS library (with demo UI, command-line bulk formatter, SSMS/VS add-in, notepad++ plugin, winmerge plugin, and demo webpage) for reformatting and coloring T-SQL code to the user's preferences.
http://www.architectshack.com/PoorMansTSqlFormatter.ashx
GNU Affero General Public License v3.0
969 stars 268 forks source link

Option: ( ) on the same level #210

Open aktenkundig opened 6 years ago

aktenkundig commented 6 years ago

This is what happens:

declare @var float = (
        select *
        )

if (
        (
            select 1
            ) like 1
        )
    print 1

But I think it is weird that ) is not on the same level the ( was. This is what I would prefer:

declare @var float = (
        select *
    )

if  (
        (
            select 1
        ) like 1
    )
    print 1
speedy32129 commented 3 years ago

+1