Formatting¶
Format the whole document, a selection, or on-the-fly while typing (indentation, keyword casing).
Shortcut: Shift+Alt+F
Document formatting¶
In messy.bsl, which holds unformatted code with no indentation, the user runs Format Document. The whole module is reformatted: nested indentation is added for the procedure body, the loop and the condition, and keywords are normalized to a consistent case.
On-type formatting (indentation as you type)¶
The user types a procedure with nested Если/Иначе line by line, pressing Enter after each. On-type formatting applies indentation on the fly, so every new nesting level immediately gets the correct offset.
Format selection (ranges formatting)¶
In range.bsl the user selects several lines inside the Если block and runs Format Selection. Only the selected fragment is reformatted (it gets proper indentation), while the rest of the procedure's code is left untouched.