Page 1 of 1
Pretty-print all files in directory
Posted: Mon Jun 20, 2011 6:09 pm
by tetramorium
Is it possible to execute Oxygen's pretty print function against all XML files in a directory?
Thanks.
Re: Pretty-print all files in directory
Posted: Tue Jun 21, 2011 12:42 pm
by adrian
Hello,
The Format and Indent(pretty print) action is only available for the currently opened editor. There is no batch Format and Indent feature.
Alternatively you could enable format on open, then open and save the files that you need formatted:
Options -> Preferences -> Editor -> Format, Format and indent the document on open
I'd recommend adding the directory to the current project and opening the files from there(Project view). If the files are too numerous or too large you may want to split them in several batches to avoid running out of memory.
Regards,
Adrian