Can I change this strange formatting?
Asked
Active
Viewed 1,072 times
0
-
Can you please share image that shows how end of file looks ? – Pathik Patel May 10 '21 at 21:59
-
I need at least 10 reputation to post images, but image you can see by click in link to imgur – Szymon May 10 '21 at 22:02
-
Please check this. https://stackoverflow.com/questions/64669962/is-there-a-way-to-auto-format-flutter-with-vscode – MobIT May 10 '21 at 23:22
-
I just set "Dart: Line Length" from 80 to 120. Now formatting works good – Szymon May 11 '21 at 09:40
1 Answers
2
The cause of that format is that there's too much nested Widgets and there's a small screen space. A workaround for this is to expand the window/workspace then "beautify" or format the code.
Updating the line length should also work. On VS Code, head to Preferences > Settings > Extensions > Dart & Flutter
and change the value set on 'Dart: Line Length'. Typing 'line length' on the Settings search bar should also help you get to the config quicker.

Omatt
- 8,564
- 2
- 42
- 144