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.
You can also use Code | Optimize Imports to organize import statements according to the project code style settings and remove unused imports.