smart tab indenting and multiline statements

Our team is struggling with smart tab indenting. Some of us like it and others don't, which causes problems when sharing code. The problem is especially magnified for multiline statements. We have some developers that use laptops and break up statements (like a method call with a number of long params or a multicondition if statement) so that the statement doesn't extend beyond the screen width:

MyMethod
( param1
, param2
, MyMethod2
( paramA
, paramB
)
);

If a smart indenter comes along and encloses a "free formatted" block then the "free formatted" block is indented and reformatted instead of just indenting the block and leaving the format alone:

if ( testCondition )
{
MyMethod
( param1
, param2
, MyMethod2
( paramA
, paramB
)
);
}

Smart tab indenting can be very helpful, but not if it doesn't allow for "free formatted" code and "auto formatted" code to coexist since some complex statements must be broken up to span multiple lines and they must be "free formatted" for readability.

[1093 byte] By [davenitup] at [2008-2-4]
# 1
Thanks for this great feedback. We're looking at how to improve smart indenting and our formatting engine in the next version and this feedback will be invaluable.

Thanks!
Karen Liu
Visual C# IDE PM

KarenLiuMSFT at 2007-9-8 > top of Msdn Tech,Visual C#,Visual C# IDE...