Align Multiline Constructs

I set option C# -> Formatting Style -> Other -> Align Multiline Constructs -> Method parameters, but when actually this formatting happens?

For example I'm typing some method, opening brackets, entering first parameter, pressing Enter and nothing happens - just default IDE auto-format for 1 tab indent on the next line instead of what I set in ReSharper. The only way to reformat that I found is to use Cleanup Code -> Reformat code command.

Is this a bug or it should that way? If second, that this reformatting is useless - everytime to press Reformat...

2 comments

Hello Kirill,

ReSharper automatically reformats code on semicolon and on closing brace
(see the corresponding options under ReSharper | Options | Environment |
Editor). You can enter the method declaration as-is and then run code cleanup
when finished. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I set option *C# -> Formatting Style -> Other -> Align Multiline
Constructs -> Method parameters*, but when actually this formatting
happens?

For example I'm typing some method, opening brackets, entering first
parameter, pressing Enter and nothing happens - just default IDE
auto-format for 1 tab indent on the next line instead of what I set in
ReSharper. The only way to reformat that I found is to use *Cleanup
Code -> Reformat code* command.

Is this a bug or it should that way? If second, that this reformatting
is useless - everytime to press Reformat...

---
Original message URL:
http://devnet.jetbrains.net/message/5305493#5305493



0

I don't think that is the appropriate behaviour.

I think that when it comes to the configuration of line wrapping most users would reasonably expect the selected configuration to be applied when they press Enter. You do not want to have to reformat the entire document every time you enter a line of code just in order to be able to see how what you are entering will look.

0

Please sign in to leave a comment.