Indentation and Whitespace Formatting
To format the code in a method so that the code uses the correct indentations and whitespace formats, press Tab, or right-click in the Method Editor and select Indent and Format (). The formatting and insertion of whitespace characters applies to the selected part of the method’s code or to the current line if no code is selected. By default, indentation and whitespace formatting also happen automatically when the keyboard focus leaves the Method Editor window. You can specify if you want indentation and formatting to be applied automatically when leaving the Method Editor window using the Indent and format automatically check box on the Methods page under Application Builder in the Preferences dialog box. The formatting is the same as that used for the automatically generated code that you can record in the Model Builder. The following list includes the most common whitespace rules:
To indent the currently selected lines without whitespace formatting, press Shift+Tab.
To increase or decrease indentation, regardless of the code formatting, use Ctrl+Alt+i to increase indentation and Shift+Ctrl+Alt+i to decrease indentation.