Updated on 2026-07-25 GMT+08:00

Visual Studio Code

Constraints

The CodeArts Agent extension for Visual Studio Code is only available for Windows, with Windows 11 (x64) recommended. If you are using Windows 10 (x64), ensure that the Visual Studio Code version is 1.95.3 (released on November 13, 2024) or later. You are advised to upgrade Visual Studio Code to the latest stable version.

Preparations

Installing the CodeArts Agent Extension

  1. Install the CodeArts Agent extension.

    1. Open Visual Studio Code and click in the left navigation pane.
    2. In the search box, enter CodeArts Agent and press Enter.
    3. Click Install. Visual Studio Code will then download and install the CodeArts Agent extension.

  2. Log in to CodeArts Agent.

    1. In the left pane of Visual Studio Code, click the CodeArts Agent icon .
    2. Click Switch to International Site.
    3. Click HUAWEI ID Login. The Huawei Cloud login page is displayed.
    4. Enter your HUAWEI ID and password and click LOG IN.

      If you use CodeArts Agent for the first time, the activation page is displayed. Agree to the service statement and click Activate Now. Wait until the package is enabled.

      Wait until the login is successful and then return to Visual Studio Code.

  3. Open the folder for storing project files.

    If this is your first login, click Open Folder in the Startup or Recent area of the welcome page to open the local folder. In the displayed dialog box, click Yes, I trust the authors to trust the folder and enable all functions.

  4. (Optional) Log out of CodeArts Agent.

    To log out, click in the chat panel of CodeArts Agent and choose Sign Out.