After you've developed from Eclipse to Android studio, you'll need to follow these steps if you want to continue using the custom code formatter that you developed on eclipse:
1. Enter the settings interface, if you can see "Eclipse code Formatter", your studio has the Eclipse code Formatter plugin installed, and you can do so in the right panel "eclipse Java Formatter config file "Select the custom code format.
2. Then on the main interface toolbar, switch format to eclipse. See: (At this time the format style is studio)
3. If your studio does not have the Eclipse code Formatter plugin, you will need to download the install plugin first, see the following: Search for "Eclipse code Formatter" in the plugins panel in Settings (Note the capitalization of the first letter), and then download and install it.
Android Studio Eclipse Code Formatter