简体   繁体   中英

How to have wider lines in intellij idea (reformat code with longer lines)

As you can see in the image, the dart reformatted in intellij idea breaks the lines to prevent having lines too wide. However, my monitor has a lot of space and thus the reformatter doesn't need to break lines too soon.

How can I adjust the number of characters or the size of a line needed for the reformatter to break the line?

在此处输入图像描述

IDEA uses dartfmt tool from the Dart SDK for .dart files formatting; the only option this tool has is line length, it can be configured in Settings | Editor | Code Style | Dart, Line length . Did you try increasing the default value ( 80 )?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM