How to create my own 'Reformat Code' style in Android Studio?

前端 未结 3 617
星月不相逢
星月不相逢 2021-01-18 03:16

In Eclipse,(Window -> Preferences -> Java -> Code Style -> Formatter) there was a facility to create my own format style and apply it in the code. Is there a way to do that

3条回答
  •  逝去的感伤
    2021-01-18 03:24

    To change formatter options go to File | Settings | Code Style | Java

    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.

    More information about reformating source code can be found on the IntelliJ Web Help

提交回复
热议问题