Android studio editor autocomplete

Issue

My Android Studio has changed its Autocomplete style from multi-line to one line in XML.enter image description here Every time I create new tag. The editor is making it in one line, not a multi-line. Which is annoying. How can I fix that issue?

Solution

Go to Editor -> Code Style -> XML -> Android and change Layout Files attributes as below:

  • Wrap Attributes = Wrap Always
  • Mark Insert line break before first attribute
  • Mark Insert blank line before tag

    enter image description here

Answered By – Saeed Masoumi

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published