How enable auto-format code for Intellij IDEA?

后端 未结 15 1094
小鲜肉
小鲜肉 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:45

    if you want, you can use a saveActions plugin. You can reformat file, optimized the imports and more things, it's really customizable and easy to setup.

提交回复
热议问题