How enable auto-format code for Intellij IDEA?

后端 未结 15 1121
小鲜肉
小鲜肉 2020-12-22 17:05

Is it possible in Intellij IDEA after typing \';\' or press \'Enter\' happened formatting of this string?

For instance, to:

a+b=10;

15条回答
  •  南笙
    南笙 (楼主)
    2020-12-22 17:36

    I know this question is quite old but there is actually a Save Actions plugin for IntelliJ that can be configured to format the code automatically.

提交回复
热议问题