Configuring VS Code (AutoLISP/VS Code)

Before you start editing and debugging AutoLISP source (LSP) files, you will want to configure the AutoCAD AutoLISP Extension.

Note: Debugging is not available in AutoCAD LT.

When configuring the AutoCAD AutoLISP Extension, you can specify values for these settings:

All settings except those related to debugging LSP files have default values.

Configuring for Debug

The settings related to debugging are used to define debug configurations that allow VS Code and AutoCAD to communicate with each other. The AutoCAD AutoLISP Extension supports these two debug configurations:

It is recommended to use the attachlisp debug configuration when possible, this will save time from having to wait for AutoCAD to launch each time you want to debug an LSP file. or information on setting up the debug configuration settings for the extension, see To Setup the AutoCAD AutoLISP Extension for Debug.

Note: Starting with version 1.4.0 of the AutoCAD AutoLISP Extension, the use of a launch.json file to define the extension's debug configurations has been deprecated. Debug configurations are now handled exclusively as part of the extension's settings. For information on setting up the debug configuration settings for the extension, see To Setup the AutoCAD AutoLISP Extension for Debug.