Dart. Idea. How to prevent formatting from merging into single line

609

End each line you don't want to be affected by formatting with "//":

[1, 2, 3]
      .map((a) => 0) //
      .map((a) => 1); //
var x = [ 
  0, 1, 2, //
  3, 4, 5 //
]; 
Share:
609
GensaGames
Author by

GensaGames

Updated on December 15, 2022

Comments

  • GensaGames
    GensaGames over 1 year

    I'm trying to set new formatting for me. Because of this problem.

    Before auto format.

    enter image description here

    After auto format. enter image description here

    I checked Idea Settings. But seems there are not too many settings for Dart. I have removed all the setting with line merging. But above issue still exist. For example. This setting, which should work, but it doesn't.

    enter image description here

    Any suggestion?