To reformat your code manually, press Ctrl + Alt + L (or using the menu Code | Reformat code… ). To reformat the whole source code of your module, just select the module folder first. In ‘File | Settings | Code Style | Java’ there is only 2 options- Default and Project. I need to create a new style other than that.