views:

34

answers:

0

On some occasions (e.g. suppress warning), VS generates class attributes. The problem I'm facing is about the way these attributes are added.

When advising Visual Studio to suppress the warning w1 and the warning w2, I expect this result:

[SuppressMessage("w1")]
[SuppressMessage("w2")]
public class Foo

Bit actually VS combines the attributes into a single line:

[SuppressMessage("w2"), SuppressMessage("w1")]
public class Foo

I don't like this single-line-style, as it reduces code clarity. Especially for long attributes (for instance warning suppressions) the lines exceed 80 characters by far.

I currently edit the code manually but I'm growing tired. Is it possible to change or circumvent this behavior? Or am I misled and should better accept the way things are?

Does VS 2010 fix this by any chance?