Source Insight has a code beautifier that works with C/C++, C#, Java and other language files that have similar curly-brace syntax.
There are several different code formatting presets, and you can save additional presets. To access all the presets, or to use a preset, select Tools > Reformat Source Code Options. The preset you select in this dialog box becomes the current preset.
To reformat a file using the currently selected preset, select Tools > Reformat Source Code with xxx Preset. Note: xxx will be changed to the name of the currently selected preset.
To reformat a whole file, select an insertion point anywhere in the file and select Tools > Reformat Source Code with xxx Preset. To reformat only selected lines, select the lines you want to reformat first.