Android Studio 快捷生成for循環 代碼塊

https://blog.csdn.net/zmm911zmm/article/details/89787293

  1. 快捷 itar
    for (int i = 0; i < FOCUSED_STATE_SET.length; i++) {
    int i1 = FOCUSED_STATE_SET[i];
    }
    1
    2
    3
  2. 快捷 itco
    for (Iterator iterator = collection.iterator(); iterator.hasNext(); ) {
    Object next = iterator.next();
    }
    1
    2
    3
  3. 快捷 itit
    while (iterator.hasNext()) {
    Object next = iterator.next();
    }
    1
    2
    3
  4. 快捷 itli
    for (int i = 0; i < list.size(); i++) {
    Object o = list.get(i);
    }
    1
    2
    3
  5. 快捷 itve
    for (int i = 0; i < vector.size(); i++) {
    Object elementAt = vector.elementAt(i);
    }
    1
    2
    3
    PS:可以查看已有的所有快捷鍵值

// 快捷鍵:
command + J

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章