To reformat code according to the style defined on the Editor | Code Style page of the Settings/Preferences dialog &shortcut:ShowSettings;, select Code | Reformat Code from the main menu.