Use Code | Reformat Code to reformat code according to the style defined
on the Editor | Code Style page
of the Settings/Preferences dialog ()
.
You can also use Code | Optimize Imports to automatically optimize imports
(remove unused imports, and so on). You can access the corresponding settings on the Editor
| General | Auto Import
page
of the Settings/Preferences dialog ()
.