Code2care : TechZone Apps & Tutorials

Eclipse like Auto Import Shortcut in Intelij IDE Android Studio



If you have just moved from ADT Eclipse to Intelij IDEA Android Studio the first thing you would notice that the keymap i.e. Keyboard shortcuts are very different then that of IDE's based on Eclipse.

If you want to add missing import statements then in Eclipse we use,

ADT Eclipse


    Windows : Ctrl + Shift + O


    Mac OS X : Command + Shift + O



For Intelij the Shift key is replaced by Alt key,


Intelij IDE Android Studio


    Windows : Ctrl + Alt + O


    Mac OS X : Command + Alt + O



Note : If you see that this does not work, then follow these steps,


    1. Go to Android Studio -> Preferences

    2. Select Editor -> Auto Import

    3. Under Java, Check Optimize imports on the fly and Add unambiguous imports on a fly

    4. Apply the changes.



Auto Import settings


Thats it!! If you know any good tricks for developers who have just moved from Eclipse to Intelij do write then down in the comment box.











Top




Posts related to Intelij.


1. Eclipse like Auto Import Shortcut in Intelij IDE Android Studio


Posts related to androidstudio.


1. Building library Gradle Project Info: Downloading services.gradle.org

2. How to enable line numbers in IntelliJ Android Studio for all files

3. Eclipse like Auto Import Shortcut in Intelij IDE Android Studio

4. Android Studio Ctrl Shift o auto import not working

5. Android : Neither user 10085 nor current process has android.permission.ACCESS_NETWORK_STATE

6. Unable to establish connection to adb : Android Studio Error

7. SDK Manager: failed to install : Android Studio on Windows

8. How to Import External Jars to Android Studio 1.0.1 Project

9. Can't Run SDK Manager find_java.bat issue

10. How to Configure Eclipse keymap in IntelliJ IDE

11. Official Android Studio ver 1.0 released for Developers

    more...

Posts related to eclipse.


1. 27 Code Snippets/Templates to Eclipse IDE Tricks

2. How to use Content Assist in Eclipse IDE : Tricks

3. How to enable Spellcheck in Eclipse Workspace

4. Java JRE Installation location Mac OS X 10.10 Yosemite

5. Parsing Data for android-21 failed unsupported major.minor version 51.0

6. Android Launch! The connection to adb is down, and a severe error has occured.

7. Eclipse like Auto Import Shortcut in Intelij IDE Android Studio

8. JavaDocs for Android SDK Eclipse IDE

9. [Solutions] Android Error in an XML file: aborting build. Eclipse SDK

10. Eclipse Error : The Eclipse executable launcher was unable to locate its companion shared library.

11. Add imports in eclipse shortcut key combinations

12. How to check installed Eclipse version 32-bit or 64-bit Mac OS X

13. How to Configure Eclipse keymap in IntelliJ IDE

14. Eclipse Failed to load the JNI shared library jvm.dll

15. Your System has Mac OS X Version 10.10. Java from Oracle requires 10.7.3 or later error

16. appcompat_v7 errors after updates to API level 21 Material Theme

17. Plug-in com.android.ide.eclipse.adt was unable to lead class Error

18. The declared package does not match the expected package Eclipse

19. incorrect line ending: found carriage return (\r) without corresponding newline (\n)

20. Android : R Cannot Be Resolved To A Variable-Error Solutions

    more...






Popular tags
android
x 175
eclipse
x 29
notepadplusplus
x 20
macosx
x 14
sharepoint
x 14
html
x 14
mac
x 13
androidstudio
x 11




1000+ C Programs     PHP Tutorial     JSON Tutorial     Swift Tutorial     India Pinocdes     About Us     Privacy Policy


Code2care © 2012-17