Reputation: 498
when I type {} in my code for examples it likes:
foreach(var item in items) {
}
but I want
foreach(var item in items) {
}
Even I did options -> C# -> Code Style -> Formatting -> Indentation -> unclick indent open and close braces
. So what's wrong with me?
Upvotes: 1
Views: 858
Reputation: 205
Go to Tools -> Options -> Text Editor -> Basic -> Advanced -> Editor Help -> ensure "Pretty Listing (reformatting) of code" is enabled.
Upvotes: 1