Increasing the character length before auto reformat dart code while saving in VSCode

When Visual studio automatically wrap code when you pressed Ctrl + S and you feel that it wrap codes in too many lines because the default characters limit is too low for your monitor.


How to fix?

File > Preferences > Settings

Search for Dart : Line length and change from 80 to 160

Search for ruler and click Edit in settings.json and change from 80 to 160

and press Ctrl + S to save..


Done!


For Webstorm,

Preferences > Editor > CodeStyle >Dart > Change character length

Comments

Popular posts from this blog

Publishing Flutter app

Solving flutter web app CORS policy