I just stated writing some C# code and I notice it doesn't seem to go
back and correct indentation etc like it does in VB. I kinda liked that
in VB. If I removed an if else block it would reindent the code etc.
Is that something I can turn on or is it just not done in C#?
I don't know of a setting that does this, but there's a keyboard chord
that will do pretty much the same thing. As long as your code can be
parsed, you can hit ctrl-k -> ctrl-f to reformat whatever you have
selected. I often hit ctrl-a beforehand to do the whole file.
I prefer this to VB's autoformat. I've noticed sometimes that when vb
does its autoformatting trick, each of the indents/unindents are put
into the editor's undo history. Now, if want to ctrl-z over my last
few code changes, I have to back up over each of the formatting
changes that were put in. What I mentioned above might function the
same way (I've never noticed this problem in C#), but I at least have
more control over when I want it to happen.