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

Is there "show all allowed attributes" support?

Open jeffb4 opened this issue 6 years ago • 2 comments

This might be possible, hence posing as question. Is there a way within a certain YAML/JSON CFN context to list schema-legal sub-attributes?

As an example, if I have an AWS::EC2::Instance resource and I go to Properties: (YAML), I get useful autocomplete suggestions when I type 'a', 'b', etc, but the ability to see an entire list of legal properties would be helpful to me.

If this isn't currently possible but is something that would better be a request to redhat.vscode-yaml please let me know and I'll go do so.

jeffb4 avatar Jul 05 '19 16:07 jeffb4

Hi, can you please elaborate on the behaviour you'd like to see?

For ec2 instance, you see the list of attributes right away

vs_code_yaml

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

So after you type in

myEC2Instance:
  Type: AWS::EC2::Instance
  Properties:

I would like to be able to get a list of valid properties (as show up in the example in your screenshot)

jeffb4 avatar Mar 20 '20 21:03 jeffb4