netbeans - Automatically import necessary classes in Android Activities without Eclipse or Android Studio -


i have question. if there's possibility automatically import necessary classes when work activities in text editor (gedit) or netbeans? because android studio incredibly slow on pc.

i mean import android.app.activity import android.os.bundle etc.

rtfm: according netbeans doc:

there several ways of how can work import statements. ide's java editor checks code correct use of import statements , warns when non-imported classes or unused import statements detected.

when non-imported class found, bulb error icon error mark appears in ide's lefthand margin (this margin called glyph margin). click error mark , choose whether add missing import or create class in current package.

while typing, press ctrl-shift-i (or choose source > fix imports menu) add missing import statements @ once. press alt-shift-i add import type @ cursor located.

when select class code completion window, editor automatically adds import statement it, not need worry this.


Comments