Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase the width of the code line in Android studio?

I am using Android studio to develop a flutter app, when I click reformat code with dart format it breaks in unpleasing format. enter image description here

Even though there is lot of space it breaks the line, how can i increase the line width?

like image 482
Alvin John Niravukalayil Avatar asked Nov 16 '19 11:11

Alvin John Niravukalayil


2 Answers

I solved this issue by changing Settings -> Editor -> Code Style -> Dart -> Line length to 150

like image 82
Alvin John Niravukalayil Avatar answered Oct 07 '22 22:10

Alvin John Niravukalayil


FOR MAC OS:

Android Studio -> Preferences -> Editor -> Code Style -> Dart -> Line length: int

like image 39
Bryan Neuberger Avatar answered Oct 07 '22 22:10

Bryan Neuberger