Home > OS >  How to make IntelliJ 2021 format single-line throwing lambda as in IntelliJ 2020?
How to make IntelliJ 2021 format single-line throwing lambda as in IntelliJ 2020?

Time:11-12

I am using IntelliJ code style format definition published at enter image description here

Or if you want to edit the code style XML directly, you can add:

<option name="SPACE_WITHIN_BRACES" value="true" />

in the block

<codeStyleSettings language="JAVA">
    ...
</codeStyleSettings>
  • Related