Eclipse's Ctrl+1 in IntelliJ and Android Studio

前端 未结 5 909
鱼传尺愫
鱼传尺愫 2020-12-25 09:42

I really like the Ctrl+1 shortcut (hints for errors and mini refactorings) in Eclipse. Is there an equivalent for it in IntelliJ and Android Studio?

5条回答
  •  星月不相逢
    2020-12-25 09:46

    Personally I don't think AltEnter is particularly correct. Ctrl1 does lots of code generation like generating local variables given a method call etc.

    CtrlAltV ... generates a local variable

    CtrlAltF ... generate a field

    AltInsert ... generate (drop down menu to generate all sorts)

    Now, unrelated to the question but maybe helpful and in the same ball park is that the "foreach" short cut in IntelliJ is iter rather than for.

提交回复
热议问题