Error message Property use_blueprint is not allowed in Visual Studio Code

I created an automation from a blueprint and it works fine.
When editing the automations.yaml file in Visual Studio Code, it shows me a red background in the ‘use_blueprint’ lines, containing the error message ‘Property use_blueprint is not allowed’. It also complains about all the ‘alias:’ and ‘description:’ lines, as duplicate keys, probably because they appear in the other automations in the file.
Is there a way to properly configure Visual Studio Code so that it recognizes these parts of the automation?