This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
A action like "Reformat code" for Java files. Put the XML in a neatly indented format. Come on. This is an obvious basic and easily implemented feature for an XML editor, and Im dissappointed Netbeans cannot do this. The XML module has been around for several releases now. I honestly think it should have been done yesterday.
*** Issue 42869 has been marked as a duplicate of this issue. ***
*** This issue has been marked as a duplicate of 22510 ***
There is a very important sub-feature of this feature that should be implemented. In addition to "Reformat XML on Whole Document" there should be a "Reformat XML in selected text." You often have segments of XML that look better if you DO NOT follow regular XML formatting rules. For example having a number of short tags on one line that are repeated, giving a tabular effect: <tr><td>1</td><td>Alpha</td></tr> <tr><td>2</td><td>Beta</td></tr> <tr><td>3</td><td>Gamma</td></tr> Etc. Editors such as Oxygen will reformat this so that each tag has its own line, much less desirable.
Verified as duplicate.