Formatting a Amazon CloudFormation Template in Visual Studio - Amazon Toolkit with Amazon Q
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Formatting a Amazon 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 Amazon CloudFormation, estimate cost, and format template.

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

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