views:

257

answers:

1

Anyway of invoking the Edit > Advanced > Format Document" VS command automatically when switching away from a document / routinely with a timer / on entering a document?

Its really irritating Ctrl+E+D'ing everytime you want to prettify your code.

+3  A: 

ReSharper does this every time you close a brace, press semicolon or paste some code in. It's not quite what you're asking for, but I don't think you'll notice the difference. Oh, and it rocks in so many other ways as well.

Roger Lipscombe
Oh Thanks! I've got Visual Assist X so I really didn't bother about ReSharper before.
Jenko
I'm surprised that VA/X doesn't do the same. I've not tried it with C# code. I tried VA/X with C++ recently, but didn't really get on with it.
Roger Lipscombe