Fixing Errors with Pieces Copilot
You can easily debug and fix errors with the built-in Pieces: Copilot Fix feature in the Pieces for JetBrains Plugin.
Using the Debugging Tool
To start debugging, locate the error or problematic code segment in your project.
Errors are usually indicated by red underscoring surrounding the error or problematic lines of code.
Then, click the Yellow Lightbulb that appears to the left of the buggy code, and click Pieces: Copilot Fix
.
Pieces Copilot will utilize whichever LLM you have currently active and analyze the issue, then open a Copilot Chat with suggestions, regenerate the code, and provide the option to insert it at the cursor mark—all with fresh code comments.
Why Debug with Pieces Copilot?
Debugging with Pieces Copilot smoothens error resolution and provides AI-driven insights in an experience that doesn’t detract from your workflow in VS Code.
This saves time by reducing the need to search for solutions online or navigate extensive documentation, keeping your workflow efficient and cutting down on distractions.
Additionally, each suggested fix includes an explanation, helping you understand and improve your coding practices as you debug.
The Pieces Copilot proactively identifies code issues—simply highlight your code, click the Yellow Lightbulb, and let it analyze the problem(s).