The following options are shown at the top of the Format Options dialog box.
Right margin for text. An expression prints on a single line if its last character position does not exceed the right margin.
Sets the standard indentation value used in the Narrow Formatting Style for function arguments.
Maximum length for function expressions in Wide Formatting Style. For longer expressions, the formatter always uses Narrow Formatting Style.
Identifies the left margin alignment for single-semicolon comments.
The Closing Paren Style group of options controls the position of closing parentheses for multi-line formatting styles. The effect of each option is demonstrated by formatting the following code, where Right Text Margin is set to 40 and Preserve Existing Line Breaks is not selected:
(cond ((/= (logand mask flg) 0) (list (list txton))) )
Visual LISP formats the preceding code as follows:
(cond ((/= (logand mask flg) 0)
(list (list txton))))
(cond ((/= (logand mask flg) 0)
(list (list txton))
)
)
(cond ((/= (logand mask flg) 0)
(list (list txton))
)
)
The remaining items in this dialog box concern tabs, saving the current setting, and the setting of several comment options.
The Visual LISP formatter inserts tab characters instead of multiple space characters whenever possible.
The Visual LISP formatter appends comments containing the current formatting settings to the end of the text in the Visual LISP text editor window. If you save these comments (and do not modify them), Visual LISP applies the saved formatting options to the text editor the next time you open the file.
This option causes Visual LISP to add a closing comment to an expression when Close at the New Line with Inner Indentation or Close at the New Line with Outer Indentation is selected. The comment takes the following form at the end of a multi-line function:
;_ end of <function name>
Visual LISP does not add the comment if the line already contains a comment.
Determines the text to be included when Insert Form-Closing Comment is selected.