Home > other >  Intellij - disable tab for new lines
Intellij - disable tab for new lines

Time:09-23

I use Intellij in Mac. I am new to mac.

I would like to write my java code like this.

list
  .stream()
  .map(String::upperCase())
  .collect(Collectors.toList())

But Intellij in Mac adds new tabs for everyline. Unable to remove. I did not have this issue in my window OS.

list
  .stream()
      .map(String::upperCase())
          .collect(Collectors.toList())

How to correct this!!

CodePudding user response:

Enable the Preferences | Editor | Code Style | Java | Wrapping and Braces | Chained method calls | Align when multiline:

enter image description here

  • Related