cform-VSCode icon indicating copy to clipboard operation
cform-VSCode copied to clipboard

use yaml format with .template files

Open francotiveron opened this issue 5 years ago • 4 comments

After installing the template, in "Contributions" I find the following languages file extensions:

json -> .json .cform .template yaml -> .yml .yaml

I am using .template files but yaml format. How do I tell the plugin to interpret my .template files as yaml and not json?

francotiveron avatar Feb 28 '20 01:02 francotiveron

Hi, the quickest way would be to activate language interpreter by shortcut ctrl + K + m while in VS Code and pick YAML to switch any file to YAML support.

Alternatively, just select YAML in bottom right corner "Language Mode" as file type for your .template.

aws-scripting-guy avatar Feb 28 '20 21:02 aws-scripting-guy

Thanks. Now I get a number of errors (the template is in use and works) like:

image

image

image

francotiveron avatar Feb 29 '20 08:02 francotiveron

Did you enable yaml custom tags in your User settings as mentioned here? https://github.com/aws-scripting-guy/cform-VSCode/issues/22

aws-scripting-guy avatar Feb 29 '20 22:02 aws-scripting-guy

yes I did

image

francotiveron avatar Feb 29 '20 22:02 francotiveron