How enable auto-format code for Intellij IDEA?

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

    The formatting shortcuts in Intellij IDEA are :

    • For Windows : Ctrl + Alt + L
    • For Ubuntu : Ctrl + Alt + Windows + L
    • For Mac : ⌥ (Option) + ⌘ (Command) + L

提交回复
热议问题