Is there a way to wrap code neatly in Android Studio?

10,798

In Android Studio 3.0 following should help:

File > Settings > Editor > General > Soft Wraps > & checking "Use original lines indent for wrapped parts"

enter image description here

Share:
10,798
Admin
Author by

Admin

Updated on June 04, 2022

Comments

  • Admin
    Admin almost 2 years

    I've enabled word wrap in the editor, but it doesn't align to the relevant scope, which looks unnecessarily messy.

    Here is an example of the automatic behavior: word-wrap-default

    enter image description here

    Here is an example of what I'd like the automatic behavior to be: word-wrap-preferred

    enter image description here

    Is there a way to set this up in Android Studio 3.0?