

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

# 程式碼編輯器連線和延伸模組
<a name="code-editor-use-connections-and-extensions"></a>

Code Editor 支援與 的 IDE 連線 AWS 服務 ，以及 [Open VSX 登錄](https://open-vsx.org/)檔中可用的擴充功能。

## 與 的連線 AWS
<a name="code-editor-use-connections"></a>

程式碼編輯器環境已與 [AWS Toolkit for VS Code](https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/welcome.html) 整合，以將連線新增至 AWS 服務。若要開始使用 的連線 AWS 服務，您必須擁有 valid AWS Identity and Access Management (IAM) 登入資料。如需詳細資訊，請參閱 [AWS Toolkit for Visual Studio Code 的身分驗證和存取](https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/establish-credentials.html)。

在程式碼編輯器環境內，您可以將連線新增至：
+  [AWS Explorer ](https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/aws-explorer.html) – 檢視、修改和部署 Amazon S3、CloudWatch 等 AWS 資源。

  在 AWS Explorer 中存取特定功能需要特定 AWS 許可。如需詳細資訊，請參閱 [AWS Toolkit for Visual Studio Code 的身分驗證和存取](https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/establish-credentials.html)。
+ [Amazon CodeWhisperer](https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/codewhisperer.html) - 使用採用 AI 技術的程式碼建議更快地建置應用程式。

  若要 Amazon CodeWhisperer 搭配程式碼編輯器使用 ，您必須將下列許可新增至 SageMaker AI 執行角色。

------
#### [ JSON ]

****  

  ```
  {
    "Version":"2012-10-17",		 	 	 
    "Statement": [
      {
        "Sid": "CodeWhispererPermissions",
        "Effect": "Allow",
        "Action": ["codewhisperer:GenerateRecommendations"],
        "Resource": "*"
      }
    ]
  }
  ```

------

  如需詳細資訊，請參閱《IAM 使用者指南》**中的[建立 IAM 政策](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_create.html)，以及[新增和移除 IAM 身分許可](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-attach-detach.html)。

## 延伸模組
<a name="code-editor-use-extensions"></a>

程式碼編輯器支援 [Open VSX 登錄](https://open-vsx.org/)中可用的 IDE 延伸模組。

若要在程式碼編輯器環境中開始使用延伸模組，請選擇左側導覽窗格中的**延伸模組**圖示 (![\[Icon showing two overlapping squares representing multiple windows or instances.\]](http://docs.aws.amazon.com/zh_tw/sagemaker/latest/dg/images/code-editor/code-editor-extensions-icon.png))。在這裡，您可以透過安裝 AWS 來設定 AWS 工具組的連線。如需詳細資訊，請參閱[安裝 AWS Toolkit for Visual Studio Code](https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/setup-toolkit.html)。

在搜尋列中，您可以透過 [Open VSX 登錄](https://open-vsx.org/)直接搜尋其他延伸模組，例如 AWS 工具組、Jupyter、Python 等。