To Complete a Word by Matching in the Console Window (Visual LISP IDE)

You can complete new lines of AutoLISP code by quickly matching previously entered lines of code.

Note: The Visual LISP IDE is available on Windows only.
  1. In Visual LISP, at the Console window prompt, type the text in a line of code you want to match.
  2. Press Ctrl+Spacebar to invoke Complete Word by Match. Visual LISP finds the last word you entered that begins with the letters you entered.
  3. Press Ctrl+Spacebar until the line of code you are looking for is located.

Example

This example expects that the following code has been previously entered at the Console window prompt:

(setq origin (getpoint "\nOrigin of inyn sign: "))
(setq radius (getdist "\nRadius of inyn sign: " origin))
(setq half-r (/ radius 2))
(setq origin-x (car origin))
(command "._circle" origin radius)
  1. In Visual LISP, at the Console window prompt, type
    (c
  2. Press Ctrl+Spacebar to invoke Complete Word by Match. Visual LISP finds the last word you entered that began with the letter “c” and completes the word you started to type:
    (command
  3. If that is not the word you are looking for, press Ctrl+Spacebar again. The next word that begins with the letter “c” is displayed:

    (car

    If you keep pressing Ctrl+Spacebar after Visual LISP finds the last matching word, Visual LISP repeats the retrieval sequence. (Note that you can also click Search Complete Word by Match from the Visual LISP menu bar instead of pressing Ctrl+Spacebar to invoke the Match feature.)

    If Visual LISP does not find any matching words, it does nothing.

    You can use Complete Word by Match in either the Console window or the text editor window. When you invoke the feature from the Console window, Visual LISP only searches the Console for a match; when invoked from a text editor window, Visual LISP only searches that editor window for a match.

    Note: The Complete Word by Match feature is not case-sensitive.