Why is there a right margin line in Android Studio editor window?

To disable In Android Studio 4.

File > Settings > Editor > Code Style > "Select the programing languae"** > Line length

Set it to: 300 for example.

Screenshot


For the new Android Studio the location is: Editor > Code Style > Hard wrap at. The standard value is 100, just change to 0


If you are using Dart language:

settings -> Code Style -> Dart

and set Line length to your preference.


I guess you mean this line?

enter image description here

That's a ruler for the max column width.

You can change the max column width from:
File > Settings > Editor > Code Style > Right Margin (columns)

enter image description here