Share

Indenting Shortcuts Reference (AutoLISP)

Product Documentation
Intermediate

Most indenting of program code is best handled by the VLISP automatic code formatting and Smart Indent features, and by customizing the formatter's options (see About Formatting Code with Visual LISP [AutoLISP]). But there are some things you may want to do by yourself.

To indent selected lines of code, press Tab or press Ctrl+E, and then click Indent Block. VLISP inserts a Tab character at the beginning of each line you selected. You can control the indent amount of the Tab character by clicking Tools Window Attributes Configure Current and setting the Tab Width value. You can also use the following keyboard shortcuts to adjust the indentation of text.

Code indentation shortcuts

To

Do

Adjust the indent of the current selection to the preceding AutoLISP text.

Press Shift+Tab

Clear trailing Space and Tab characters, insert a new line, and indent at the level of the previous non-empty line.

Press Shift+Enter

Insert a new line without clearing trailing Space and Tab characters of the current line.

Press Ctrl+Enter


Was this information helpful?