Formatting a AWS CloudFormation Template in Visual Studio - AWS Toolkit with Amazon Q

Formatting a AWS CloudFormation Template in Visual Studio

  • In Solution Explorer, open the context (right-click) menu for the template and choose Format Template.

    Alternatively, to format the template you're currently editing, from the Template menu, choose Format Template.

    Dropdown menu showing options to deploy to AWS CloudFormation, estimate cost, and format template.

    Your JSON code will be formatted so that its structure is clearly presented.

    JSON code structure for AWS CloudFormation template with UserData and Properties sections.