

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Memformat CloudFormation Template di Visual Studio
<a name="tkv-cfn-editor-format"></a>
+ Di Solution Explorer, buka menu konteks (klik kanan) untuk template dan pilih **Format Template**.

  Atau, untuk memformat template yang sedang Anda edit, dari menu **Template**, pilih **Format Template**.  
![\[Dropdown menu showing options to deploy to CloudFormation, estimate cost, and format template.\]](http://docs.aws.amazon.com/id_id/toolkit-for-visual-studio/latest/user-guide/images/vs-editor-template-menu-format.png)

  Kode JSON Anda akan diformat sehingga strukturnya disajikan dengan jelas.  
![\[JSON code structure for CloudFormation template with UserData and Properties sections.\]](http://docs.aws.amazon.com/id_id/toolkit-for-visual-studio/latest/user-guide/images/vs-editor-cfn-formatting.png)