You can reformat a source file to use any of the preset code styles in the Code Style preference panel.
Figure 1 -Selecting Source > Format from within an editor view