Is their "region-like" bending feature for Android Studio

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).

Unfolded code

Folded code

Is there something similar for XML editors (especially in Android Studio)?

Something we can add, for example:

 <!-- region MY LAYOUTS --> <RelativeLayout> //Some layouts </RelativeLayout> <!-- endregion --> 
+5
source share
3 answers

Now you can do this:

 <!--region Title--> <View android:layout_width="wrap_content" android:layout_height="wrap_content"/> <!--endregion--> 

(I am using Android Studio 3.0 and not sure when it was supported)

+4
source

The Android Studio XML editor only supports folding at the IDE level using Cmd+Alt+"+" or "-" .

+2
source

Highlight the code and press ctrl + "."

0
source

All Articles