Is there a way to collapse an element from its end tag?

Hi Folks, I have a long XML document. Sometimes, as I scroll through the document I am positioned at an element (current-element) and I want to collapse its preceding element: ... </preceding-element> <---- I want to collapse this element <current-element> The start tag for preceding-element is way up in the document; scrolling up to find the start tag is a pain. Is there a way to collapse preceding-element from its end tag? /Roger

Hello Roger, It appears that the "Toggle fold" action isn't active on the end tag. A simple workaround (two steps), since you want to collapse that element anyway, is to use the "Go to Matching tag" (Ctrl+Shift+G) action on the end tag which will position you on the start tag. Then you can then use the "Toggle fold" action (or fold widget on the left side stripe). Regards, Adrian Adrian Buza oXygen XML Editor and Author Support On 15.11.2022 19:29, Roger L Costello wrote:
Hi Folks,
I have a long XML document. Sometimes, as I scroll through the document I am positioned at an element (current-element) and I want to collapse its preceding element:
... </preceding-element> <---- I want to collapse this element <current-element>
The start tag for preceding-element is way up in the document; scrolling up to find the start tag is a pain. Is there a way to collapse preceding-element from its end tag?
/Roger _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
Oxygen XML Editor Support (Adrian Buza)
-
Roger L Costello