Android Studio creates boilerplate xml code that looks like this:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
tools:context=".MyActivity">
OTOH indenting it via emacs aligns all siblings with each other, which takes up too much space and makes life tough for me in a team full of intellij users.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
tools:context=".MyActivity">
How do I configure emacs for indenting xml like this? I'm out of words to frame a google search for this problem.
web-mode.el默认执行此操作
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.