aws-scripting-guy / cform-VSCode

CloudFormation extension for Visual Studio Code
86 stars 36 forks source link

use yaml format with .template files #49

Open francotiveron opened 4 years ago

francotiveron commented 4 years ago

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?

aws-scripting-guy commented 4 years ago

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.

francotiveron commented 4 years ago

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

image

image

image

aws-scripting-guy commented 4 years ago

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

francotiveron commented 4 years ago

yes I did

image