Eclipse – Using IntelliJ IDE to autocomplete line and place semi-colon

eclipseintellij-idea

In eclipse you can hit "enter" and the IDE will automatically take you to the end of the line and place a semicolon.

In IntelliJ, if you hit shift-enter you get similar behavior minus adding the semicolon. I have read and tried cntrl-shift-enter and you get the exact same behavior. However, that is such an awkward key combination to be using all the time, at least much more so than the one-button approach using Eclipse.

Any ideas?

IntelliJ autocomplete escape

Best Answer

In InteiJ IDEA use (Ctrl-Shift-Enter) for "Smart Autocomplete".

It will end the line "smartly" with a semicolon as you wish. It also works in a few different situations like IF statements of FOR loops.