Code snippets that you can import to your Visual Studio Code installation
- open VSC
- File -> Preferences -> User Snippets
- add a new one for YAML context
- paste content from yaml.json in the new file
- save the file
For example you can type in servicetemp
in your .yaml file and get the following output:
- service_template_object:
- ""
check_command: foo
check_interval: 60
retry_interval: 30
use_agent: true
You can change the string that you need to type in to create the actual code from the snippet by changing the "prefix": "$Change_me"
in your User Snippets file for your YAML code (yaml.json by default).