If you are working in the mix team of Eclipse and Android Studio you will need to share Eclipse formatter.xml to maintain the consistency.
On Mac:
- Android Studio > Preferences.. > search for Plugins
- Browse repositories... [button]
- Search for "Eclipse Code Formatter"
- Instal plugin [button]
- restart Android Studio
- Android Studio > Preferences.. > Search for "Eclipse Code Formatter"
- find "Eclipse Java Formatter config file" > Browse > select your file
- Apply- Select Java class to format > Code > Reformat code.. (Shift + command + f)
No comments:
Post a Comment