Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import all settings from Eclipse to Android Studio

Google has announced that ADT plugin for Eclipse is no longer in active development.

If you're a new Android developer, you should consider starting with Android Studio, because the ADT plugin for Eclipse is no longer in active development.

I have my own formatter which I have slightly modified from original version of android formatter, I couldn't find a way to import it.

Clean Up - Customized Clean up.

Customized look. Left : Eclipse, Right : Studio with eclipse theme. Still not close enough.

Eclipse vs Android Studio

  • How to import all settings under Preferences > Java > Code Style > *4 from Eclipse to Android Studio.?

  • Map all shortcuts & it's functionalities.

like image 755
VenomVendor Avatar asked Dec 01 '25 03:12

VenomVendor


2 Answers

I was able to get the Eclipse Look & Feel by modifying Colors & Fonts.
Copy of settings.jar

Usage :


Android Studio
    |-- File
         |--> Import Settings --> Select settings.jar --> Select All --> Import
         |--> Default Settings/Preferences
                |--> KeyMap -->  Mac OS X 10.5+ copy {if mac} / Eclipse.
                |--> Editor
                       |--> Colors & Fonts --> Eclipse

like image 85
VenomVendor Avatar answered Dec 02 '25 15:12

VenomVendor


I suggest you switch over to Android Studio. Here I mention why:

  1. Google will enforce the Android Studio / Gradle project structure. Sample Code will be released in this format.

  2. 3rd party libraries will not be released in a format that's easy to include in Eclipse anymore. They will use gradle. Gradle & Eclipse? Google it, people don't seem to be happy.

  3. As Android Studio gets better and the ADT plugin for Eclipse is discontinued, you will glance over to AS and it's new shiny features and be jealous.

  4. Everything you said about shortcuts & code formatting are just excuses. I switched from Eclipse to AS 8 weeks ago and forgot 95% of the Eclipse shortcuts (and learned 95% of the Eclipse shortcuts I knew on AS). Print out a cheatsheet, put it on your desk and roll. If you don't fancy the default settings of AS / IntelliJ, please name one setting or shortcut that can't be customized.

  5. Gradle really has a lot to offer. Look at the 'product flavors' feature, it's great! If you've built 5 variants of one app with a mouseclick you don't want to go back!

like image 29
fweigl Avatar answered Dec 02 '25 16:12

fweigl