Skip to content

Code completion in editor

Milos Kleint edited this page Oct 23, 2015 · 2 revisions

Code completion

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. completion inherits

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. completion variable

Within the class body, simple completion for functions is provided. completion function

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. completion define

define expanded

Clone this wiki locally