About Formatting Code (Visual LISP IDE)

 
 
 

The Visual LISP code formatter arranges the text of AutoLISP expressions in a style that improves appearance and readability.

NoteThe Visual LISP IDE is available on Windows only.

The code formatter works automatically as you enter code in the text editor window, but can also be used to format text copied from other editors, or for reformatting your code in a different style.

As code is entered in the text editor window, the Visual LISP Smart Indent feature works in the background and arranges the indentation of the program code automatically. The indent is evaluated up to the current AutoLISP parenthesis nesting level. If the current expression is preceded by only a sequence of completed top-level AutoLISP expressions, the indentation will be zero.

You can also explicitly invoke the formatter to rearrange

NoteIf the formatter finds unbalanced parentheses in your code, an message box is displayed. Based on your response to the message box, code formatter will or will not add parentheses where it thinks they belong. While the code formatter can balance the number of parentheses, it might not insert the missing parentheses in the correct places.

When formatting text, keep the following in mind: