When applying "Reformat command" (⌘+⌥+L) on a XML file Android Studio adds a space before closing tags.
For example, the following code
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/panic"/>
After "Reformat code" will become
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/panic" />
Is it possible to avoid that? Where can I configure the space before closing XML tags?
I'm using Android Studio 2.1.2 on MacOSX El Capitan 10.11.5.
This is one of the options.
Settings->Editor->XML->"Other" Tab
. In the Spaces
group uncheck in empty tag
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With