I just stumbled upon a useful setting for the (XPages) XML editor that I want to share with you: I always asked myself how people managed to create a structured source code in the XPages XML editor with each attribute put in a separate line (as seen lately in the latest Extlib video by Brian Gleeson). Well, it's very simple as this is a setting. I also checked the setting for automatically removing any blank line in the code which will result in more compact and readable sources.
In the XPages source just right click and choose "Preferences" and tick the values as shown in the picture:
In the editor press CTRL-SHIFT-F to reformat the source. The result will look like this: