Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions code-studio/how-to-guides/quick-fix-error.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: Quick Fix Your Errors
description: "Learn how to use the Quick Fix Your Errors feature in Syncfusion Code Studio to automatically resolve syntax errors and editor-highlighted issues"
platform: syncfusion-code-studio
keywords: quick-fix, error-resolution, syntax-errors, code-assistance, ai-debugging
---

# Quick Fix Your Errors

## Overview
This guide explains how to use the Quick Fix Your Errors feature in Syncfusion Code Studio. It provides step by step instructions to identify syntax errors and automatically resolve them using the built-in quick fix tool powered by LLM assistance.

## When to Use This Feature
Use the Quick Fix Your Errors feature whenever your code contains:
- Syntax errors
- Editor highlighted issues

This feature helps reduce debugging time and improves coding efficiency.

## Prerequisites
Before you begin, make sure:
- Syncfusion Code Studio installed and configured (Follow the [Install and Configure](/code-studio/getting-started/install-and-configuration) guide if not yet installed)
- You have opened the code file that contains the error.

## Steps to Use Quick Fix Your Errors
1. Open the code file that contains the error.
2. Click directly on the highlighted error to reveal the Quick Fix icon.
3. Click the Quick Fix icon.
4. Choose fix.
The tool will send the error to the model for analysis and generate a corrected version.
5. Apply the fix to resolve the error immediately.

## Demonstration
![Quick Fix Error](../reference/reference-images/quickfixerror.gif)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions code-studio/tutorials/generate-your-first-code-using-agent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
title: Generate Your First Code Change Using Agent
description: "Learn how to use Agent mode in Syncfusion Code Studio to generate, review, and manage code changes with AI assistance"
platform: syncfusion-code-studio
keywords: agent-mode, ai-coding, code-generation, code-review, checkpoints
---

# Generate Your First Code Change Using Agent

## Overview
This tutorial guides you to use Agent mode in Syncfusion Code Studio. You'll learn how to enable Agent mode, instruct the AI with prompts, review and manage proposed code changes, and utilize checkpoints for code changes review. To learn more about the agent mode visit [agent](/code-studio/features/agent).

## Prerequisites
Before beginning, ensure:
- Syncfusion Code Studio installed and properly configured on your system. If you have not yet downloaded Code Studio, please refer to this link [Install and Configure](/code-studio/getting-started/install-and-configuration.md) for step-by-step instructions on downloading and configuring Code Studio.
- Your project is opened in Code Studio, or you have opened at least one empty folder.

## What You'll Learn
By the end of this tutorial, you'll be able to:
- Enable Agent mode within Code Studio.
- Use a prompt to initiate code changes and tool operations.
- Review, accept, or reject suggested code changes.
- Receive a detailed summary of all the changes made.
- Manage and restore project states using checkpoints.

## Step-by-Step Guide

### 1. Enable Agent Mode
1. Open Syncfusion Code Studio with your target project or with a new folder.
2. Click on the mode selector and choose Agent Mode.
- Agent Mode enables autonomous coding capabilities, allowing the AI to analyze, edit, and manage your codebase with minimal manual intervention.
3. Confirm that Agent Mode is active (the interface displays a tick mark status indicator).
<img src="../reference/reference-images/firstagentchange1.png" alt="enable agent" />

### 2. Describe Your Task
1. In the chat input, give your query.
2. Press Enter to submit your request.
3. Agent will:
- Understand and analyze your request.
- Explore the relevant codebase.
- Use tools for making changes.
- Suggest necessary code changes.

**Note:** Be as specific as possible to achieve the desired output.
<img src="../reference/reference-images/firstagentchange2.png" alt="enable agent" />

### 3. Review the Proposed Changes
- The Agent displays a clear, side-by-side comparison of all proposed modifications.
- After each change, the Agent provides Keep or Undo options directly in the chat, allowing you to approve or revert updates instantly.
<img src="../reference/reference-images/firstagentchange3.png" alt="enable agent" />

### 4. Code Change Summary
- Once all changes are complete, the Agent summarizes its actions.
- You'll see a detailed summary in the chat, listing all files modified, new files created, and tools used.
- Review this summary carefully to ensure all changes align with your intent.

### 5. Manage and Use Checkpoints
- The Agent automatically creates checkpoints between chat requests.
- You can review, compare, and restore these checkpoints at any time, giving you a safety net.
- Progress updates—including diffs, command outputs, and next steps—are posted in the chat area.
<img src="../reference/reference-images/firstagentchange4.png" alt="enable agent" />

## Verification & Troubleshooting
To confirm everything worked as expected:
- Ensure Agent Mode is active, and you grant all necessary tool permissions.
- Review the final summary and verify that the intended module(s) were updated/refactored.
- Check your codebase to see that changes you accepted have taken effect.
- Review available checkpoints (usually visible at the bottom of the request). Try restoring a checkpoint to confirm this feature works.
- Click [here](/code-studio/features/checkpoints) to know more about checkpoints.
- If the tool call is not working, check whether you have granted permission for tool access.