Eclipse's Ctrl+1 in IntelliJ and Android Studio

Alt+Enter


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.


I also don't think ctrl+enter is the answer.

I'd say ctrl+alt+shift+t (Refactor this...) which I remapped to ctrl+1 is the closest thing to ctrl+1 from eclipse. It allows you to inline, extract code (variable, method, field etc.), move code, pull members etc.