Is there a format XML command?

I can't seem to find any command to reformat the xml I am working on. Often I may cut and paste pieces of XML to create a new XML file but the indentation on different pieces may be inconsistent so I was expecting there would be a command to reformat the file, but I can't seem to find one anywhere. For now I have been copying the whole thing into my XML editor (XMLBluePrint) reformatting it there then pasted the reformatted code back into IDEA, seems like a lot of work so I must be missing something.

I'm using IDEA 15.0.1 Ultimate

Thanks for any pointers.,

1 comment
Comment actions Permalink

Right in the main menu: "Code => Reformat Code" or just Ctrl-Alt-L

Or "Help => Find Action" (which is Ctrl-Shift-A), then type "format"

1

Please sign in to leave a comment.