Document navigation

Navigating between XML elements located in various parts of the currently edited document is easy due to several powerful features.

Folding of the XML elements

XML documents are organized as a tree of elements. When working on a large document you can collapse some elements leaving in the focus only the ones you need to edit. Expanding and collapsing works on individual elements: expanding an element leaves the child elements unchanged.

Figure 4.24. Folding of the XML Elements

Folding of the XML Elements

To toggle the folded state of an element click on the special mark displayed in the left part of the document editor next to the start tag of that element or click on the action Toggle fold (Ctrl+Alt+Y) available from the context menu

Other menu actions related to folding of XML elements are available from the context menu of the current editor:

  • Document+Folding+ Close Other Folds (Ctrl+NumPad+/) Fold all the sections except the current element.

  • Document+Folding+ Collapse Child Folds : Fold the sections indented with one level inside the current element.

  • Document+Folding+ Expand Child Folds (Ctrl+NumPad++ (Cmd+NumPad++)): Unfold the sections indented with one level inside the current element.

  • Document+Folding+ Expand All (Ctrl+NumPad+* (Cmd+NumPad+* on Mac OS)): Unfold all the sections inside the current element.

  • Document+Folding+ Toggle Fold (Alt+Shift+Y (Cmd+Alt+Y on Mac OS)): Toggles the state of the current fold.

You can use folding by clicking on the special marks displayed in the left part of the document editor.