Format and Indent
With certain files, you can instruct Code Editor to format and indent the files, based on preferences defined in Genero Studio.
Supported file types
You can format and indent these file types:
- XML files
- JSON files (.json)
Run with a file open in Code Editor
With the file open in the Code Editor, select
. The open document is formatted and indented.Format and indent rules
Default rules govern the indenting and formatting of XML and JSON files, with the following
exceptions:
- XML files can only set the tab size on the Behavior tab in the Preferences page for the XML language.
To modify a setting on the Behavior tab:
- Select . (or, if you are on a Mac, )
- Select .
- In the Language field, select the language.
- Select the Use custom settings check box.
- Modify the settings on the Behavior tab.
For more information, see Behavior & Display preferences.