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

Diff View

Within your editor, CodeArts Agent shows all code changes clearly in its diff view, whether you create a new file or edit an existing one. You can quickly check details of each change before and after applying them, keeping adjustments transparent and manageable.

Constraints

This feature is available only when Agent or a custom agent is selected.

Diff Preview

  • Green highlights mark new lines.
  • Red highlights mark deleted lines.

Diff View

The agent's diff view shows context changes clearly for better understanding. On the chat page, you will see the total files changed, line counts, and a file list. Click View Change beside any file to check its update details in the diff view.

  • Operations on files: Click Keep All (Ctrl+Enter) or Undo All (Ctrl+Delete) at the bottom of the editing area, or choose Accept All or Reject All above the chat box to apply or reject all modifications at once. Hover over a file and click or to instantly approve or decline its changes.
  • Operations on blocks: In the editing area, click Undo (Ctrl+N) for the target code to restore it to the original state. If the modification meets the expectation, click Keep (Ctrl+Y) to apply the modification.
Figure 1 Display effect of the Diff view