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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot