[DARTLANG] max_line_length for dartfmt

Hi and thank you for your great plugin,

How can I set the max_line_length for dartfmt inside intellij, 80 chars is way too small given my wide displays.

P.S. Moreover, is there an option do apply dartfmt during a save operation?

Thanks,
// Nick

2 comments
Comment actions Permalink

Right margin for dartfmt is not configurable yet, I filed a request for it: https://youtrack.jetbrains.com/issue/WEB-16730

'Save' operation is something that IntelliJ / WebStorm users do not care about. You never have to press Ctrl+S. All files are saved automatically on frame deactivation, project closing and in other cases when needed. So no operations are tied to Save.
We are thinking about adding an option to reformat with Dart Style to the Commit dialog.
Also we are working on making IDE internal formatter 100% equivalent to dartfmt.

0
Comment actions Permalink

Great to know.

Thank you again.
// Nick

0

Please sign in to leave a comment.