I am developing an Android studio and, like other IDEs, Android Studio has the function of creating "regions" in java code, which can be folded. (see below)
With this code
//region INITIALIZATION private int myVaribale; private String otherVariblae; //endregion
We can add / deploy code (see screenshots below).


Is there something similar for XML editors (especially in Android Studio)?
Something we can add, for example:
<RelativeLayout> //Some layouts </RelativeLayout>
source share