Is it possible in Intellij IDEA after typing \';\' or press \'Enter\' happened formatting of this string?
For instance, to:
a+b=10;
File-> Settings -> Keymap-> Complete Current Statement
I added ; key in there. When typing ';' at the end of the line, it is auto-formatting.
UPDATE
I realized that this will cause some problems in some situations. Use Ctrl+Shift+Enter instead. This key can be used in any position of cursor in a line. It will add ; at the end of the line. Also this shortcut have some other useful features.
like:
public void someMethod()
after shortcut:
public void someMethod() {
// The cursor is here
}
so formatting on inserting ; is not necessary.