-
Notifications
You must be signed in to change notification settings - Fork 10
Code completion in editor
Code completion (invoked via CTRL-Space
or CMD-Space
) attempts to provide help at certain places of the puppet files.
After inherits
, require
or include
keywords a list of known puppet classes is provided.
The first invocation provides just classes from current project, repeated invocation from all open projects.
Invoking code completion after typing $
(or ${
within string literals) will suggest all known variables, either from current file or other files in the same project.
Repeated invocation again suggests variables from all open projects.
Within the class body, simple completion for functions is provided.
If the project provides custom resource types, these are also suggested in code completion.
When selected the resource is inserted along with any mandatory parameters.