IntelliJ IDEA 13.1.0 Web Help

Some features described here are available in Ultimate edition only.

The Collapse Tag intention allows you collapse an XML tag whose contents are only white space, into an empty XML tag.