Edit»Format Selection
Use the Format Selection option to apply the code formatting you specified in the Formatting Options dialog box to the currently selected code in the Source window.
This menu item is not available if you enable the Use CVI legacy formatting option in the Editor Preferences dialog box.