Formatting a Amazon CloudFormation Template in Visual Studio - Amazon Toolkit for Visual Studio
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.

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