I agree with Kami on the nested AND/OR example.
I want to suggest that code like "WHERE userID in (1,2,3,4,5)" doesn't reformat to
"WHERE userID IN (
1
, 2
, 3
, 4
, 5
)
"
but it is ok for
"WHERE userName IN (
'Alice'
, 'Bob'
, 'Carol'
)
"
I realize this may not be incredibly easy to figure out, so maybe a configuration that determines how many characters each element in the "IN" clause must be before splitting lines (in other words, in my both examples, this value could be 2; the first example stays on one line because all the elements are less than or equal to 2, and the second example splits lines because at least one element is greater than 2).
Edited by user
Wednesday, November 12, 2014 8:35:08 PM
|
Reason: Not specified