This VS Code extension adds "Go to Definition" and hover tooltips for macro functions in the SAS language.
The hover tooltip shows the full signature of the macro function, and "Go to Definition" lets you jump directly to the location where the macro function is defined.
Definitions are found in the current file, and in all .sas
files in directories listed in the sas.sasautos
option. The option supports variable substitution for ${workspaceRoot}
to enable relative paths.
You must have another extension adding a SAS language grammar and file association. I use SAS.sas-lsp.
This extension contributes the following settings:
sas.sasautos
: An array of paths to SAS autocall macro libraries. They searched are for macro function definitions. Supports variable substitution for${workspaceRoot}
. For example:"${workspaceRoot}/Macros"
.
Example usage in settings.json
:
{
"sas.sasautos": [ "${workspaceRoot}/Macros" ]
}