How to auto complete for loop in Android studio

digitalmidges picture digitalmidges · Mar 16, 2015 · Viewed 16.9k times · Source

I'm using Android studio and i'm trying to find a way to use a very common thing i used to do in eclipse. when i'm writing (for example) a for loop, i'm writing the word "for" then i click on Ctrl+Space and eclipse autocomplete to a for loop with all the parameters including

for (int i=0 ; i<mCheckBoxArray.length;i++){
            mCheckBoxArray[i].setChecked(false);
        }

but now, in Android studio it just auto complete to for(). the for loop its just an example, does anybody knows how to do this in android studio?

Answer

Bhavesh Hirpara picture Bhavesh Hirpara · May 7, 2015

You can try fori from suggestion list

enter image description here