Quote Originally Posted by Thierry69 View Post
VBIDEUtils does it very well, and many more things.
I use it everyday (of course, I wrote it also)

Search on the forum, you'll have the link for the sources, as it is now open source
Does VBIDEUtils perform the code formatting automatically? I am looking at your indent source code, and don't see direct access to the codemodule.