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: Trailing Booleans when Expanded #103

Open TaoK opened 11 years ago

TaoK commented 11 years ago

Barry Doyle suggests it would be nice to have the option to keep boolean operators at the end of the line, instead of the start.

Instead of

    ON A.WORD_ID = LTB.WORD_ID
        AND A.WORD_TYPE_CD = @WORD_TYPE_CD

have

    ON A.WORD_ID = LTB.WORD_ID AND
        A.WORD_TYPE_CD = @WORD_TYPE_CD
mslowikowski commented 11 years ago

It's interesting but in C# I prefer the && at the end of the line but in SQL I look for it at the start of the new line.

steelwil commented 9 years ago

This feature would be good as this is the convention we are using.

Tx