Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA: Custom regions folding in xml

I found out it is possible to create custom regions folding in java files with nice line comments as descibed here: http://www.jetbrains.com/idea/webhelp/folding-custom-regions-with-line-comments.html but I can see this only works for java files. Is it somehow possible to make it work in xml files like in pom.xml.

What I would like to achieve is to introduce custom regions in dependencies to make it easier to navigate between them.

like image 482
firen Avatar asked Jul 04 '14 09:07

firen


Video Answer


1 Answers

You can create regions in XML like this:

<!-- region This will show when folded -->

Your XML goes here.

<!-- endregion -->
like image 196
Vlad Schnakovszki Avatar answered Oct 10 '22 05:10

Vlad Schnakovszki