

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 將 Infrastructure Composer 主控台與本機 IDE 連接
<a name="other-services-ide"></a>

若要將 Infrastructure Composer 主控台連線至本機整合開發環境 (IDE)，請使用本機同步模式。此模式會自動同步資料，並將資料儲存至本機電腦。如需本機同步模式的詳細資訊，請參閱 [在 Infrastructure Composer 主控台中本機同步和儲存您的專案](using-composer-project-local-sync.md)。如需使用本機同步模式的說明，請參閱 [在 Infrastructure Composer 主控台中本機同步和儲存您的專案](using-composer-project-local-sync.md)。

**注意**  
並非所有瀏覽器都提供**啟用本機同步**選項。它可在 Google Chrome 和 Microsoft Edge 中使用。

## 將 Infrastructure Composer 與本機 IDE 搭配使用的優勢
<a name="other-services-ide-benefits"></a>

當您在 Infrastructure Composer 中設計時，本機範本和專案目錄會自動同步並儲存。

您可以使用本機 IDE 來檢視變更和修改範本。您在本機所做的變更會自動同步至 Infrastructure Composer。

您可以使用 AWS Serverless Application Model 命令列界面 (AWS SAM CLI) 等本機工具來建置、測試、部署您的應用程式等。下列範例示範如何將資源拖放到 Infrastructure Composer 的視覺化畫布上，而畫布則會在本機 IDE 的 AWS SAM 範本中建立標記。

![\[使用 Infrastructure Composer 搭配本機 IDE 來同步變更。\]](http://docs.aws.amazon.com/zh_tw/infrastructure-composer/latest/dg/images/aac_other_ide_01.gif)


## 將 Infrastructure Composer 與本機 IDE 整合
<a name="other-services-ide-steps"></a>

**將 Infrastructure Composer 與本機 IDE 整合**

1. 在 Infrastructure Composer 中，建立或載入專案，然後選取畫面右上角的**選單**按鈕，然後選擇啟用本機同步，以**啟用本機同步**。
**注意**  
並非所有瀏覽器都提供**啟用本機同步**選項。它可在 Google Chrome 和 Microsoft Edge 中使用。

1. 在本機 IDE 中，開啟與 Infrastructure Composer 相同的專案資料夾。

1. 將 Infrastructure Composer 與本機 IDE 搭配使用。Infrastructure Composer 中所做的更新會自動與本機電腦同步。以下是您可以執行的動作的一些範例：

   1. 使用您選擇的版本控制系統來追蹤 Infrastructure Composer 正在執行的更新。  
![\[在 Infrastructure Composer 中進行變更，並在本機 IDE 中檢視 git 差異。\]](http://docs.aws.amazon.com/zh_tw/infrastructure-composer/latest/dg/images/aac_other_ide_02.gif)

   1. 在本機使用 AWS SAM CLI 來建置、測試、部署您的應用程式等。如需詳細資訊，請參閱 [將您的 Infrastructure Composer 無伺服器應用程式部署至 AWS 雲端](other-services-cfn.md)。  
![\[在本機 IDE 中使用 sam build 和 sam 部署。\]](http://docs.aws.amazon.com/zh_tw/infrastructure-composer/latest/dg/images/aac_other_ide_03.gif)