Format and Indent (Pretty Print) Multiple Files
Oxygen XML Editor plugin provides support for formatting and indenting (pretty printing) multiple files at once. This action is available for any document in XML format, as well as for XQuery, CSS, JavaScript, and JSON documents.
To format and indent multiple files, use the Format and Indent Files action that is available in the contextual menu of the Navigator view. This opens the Format and Indent Files dialog box that allows you to configure options for the action.
The Scope section allows you choose from the following scopes:
- All opened files - The pretty print is performed in all opened files.
- Directory of the current file - All the files in the folder of the current edited file.
- Project files - All files from the current project.
- Selected project files - The selected files from the current project.
- Specified path - Pretty prints the files located at a specified path.
The Options section includes the following options:
- File filter - Allow you to filter the files from the selected scope.
- Recurse subdirectories - When enabled, the pretty print is performed recursively for the specified scope. The one exception is that this option is ignored if the scope is set to All opened files.
- Include hidden files - When enabled, the pretty print is also performed in the hidden files.
- Make backup files with extension - When enabled, Oxygen XML Editor plugin makes backup files of the modified files. The default extension is
.bak
, but you can change the extension as you prefer.