Visual Studio/C# auto-format. Can I control newline after attributes?

What I usually do is hit Ctrl-Z the very moment autoformat jumps in where I don't appreciate it I.e. , on a closing accolade, which formats a whole class or method. Type the closing accolade, see it changing the way you don't like it and then hit Ctrl-Z.(I know you were looking for an actual option, I don't know if any exists).

What I usually do is hit Ctrl-Z the very moment autoformat jumps in where I don't appreciate it. I.e. , on a closing accolade, which formats a whole class or method.

Type the closing accolade, see it changing the way you don't like it and then hit Ctrl-Z. (I know you were looking for an actual option, I don't know if any exists).

Oh! That's actually not too bad. I always kind of assumed that would delete my last actual typing, but you obviously have realized that it doesn't.

If there turns out to be no way to do a real configuration, this is a reasonable workaround – Clyde Dec 10 '09 at 13:39 Different programs act differently here. OpenOffice (personal favorite) for instance removes both autoformat and last typing, which is a nuisance. In Eclipse it depends on the plugin (often totally ruining the undo-list).

Most Microsoft products (Visual Studio, Office) add it as an extra entry in the undo-list. Once you get used to it, it's not so bad indeed ;-) – Abel Dec 10 '09 at 14:21.

Therer are a few options which will probablry help you to get the desired effect.

– Holger Kretzschmar Dec 10 '09 at 14:52 Visual Studio 2008 – Clyde Dec 10 '09 at 18:13.

Not sure if it works for attributes, but look under Tools -> Options -> Text Editor -> C# -> Formatting -> Wrapping -> Leave block on single line or Leave statements and member declarations on the same line.

No...already have those checked. They do not apply to attributes – Clyde Dec 10 '09 at 14:11.

Yeah, Ctrl+E, D is your friend. You can optimize the formatting in Text editor options.

What I usually do is hit Ctrl-Z the very moment autoformat jumps in where I don't appreciate it. , on a closing accolade, which formats a whole class or method. Type the closing accolade, see it changing the way you don't like it and then hit Ctrl-Z.

(I know you were looking for an actual option, I don't know if any exists).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions