"Reject" and "Accept"
Knowing when and how to use the Reject and Accept actions is key to keeping your development workflow smooth, focused, and aligned with your project’s needs.
1. Reject - Discarding Unwanted Suggestions
The Reject action helps you discard AI-generated suggestions that don’t fit your project’s needs. By rejecting irrelevant suggestions, you keep your codebase clean, consistent, and aligned with your existing architecture.
When to use it:
If the AI suggests something that doesn’t match your current project setup, such as recommending a state management tool like Redux when you already use Context API.
If the suggestion adds unnecessary complexity or abstraction that doesn’t align with your project style.
Example:
The AI suggests using Redux for state management, but you prefer using the Context API. You hit "Reject" to keep things simple and in line with your architecture.
The AI suggests adding extra abstraction to a component, but you prefer to keep it straightforward. You hit "Reject" to avoid over-complicating your code.
2. Accept - Finalizing Code Suggestions
The Accept action lets you confirm and finalize the AI-generated code suggestions. Once you accept changes, they are integrated into your project, ensuring your codebase stays up to date with the latest approved modifications. Unlike "Apply," accepting changes means you are fully committing to the suggested code.
When to use it:
Fits well with your project: If the AI suggests a component, feature, or change that aligns with your architecture, you can confidently hit Accept to integrate it.
Single-file or multi-file acceptance: You can accept changes to individual files or multiple files at once, depending on your preference and the scope of the changes.
Example:
After reviewing a new form component suggested by the AI, you confirm it meets your standards and hit "Accept" to finalize it.
The AI suggests a code refactor that improves readability. You review it and then "Accept" the change to keep your codebase clean and efficient.
Individual and Multi-file Acceptance
You now have more control over how you integrate changes. After reviewing the AI's suggestions, you can either:
Accept individual files: Choose to accept suggestions for specific files only.
Accept multiple files: If you’re confident with multiple changes across different files, you can accept all changes in one go.
By using Reject and Accept, you can streamline your development process and make sure your project stays on track. "Reject" is used to Discards suggestions that don’t fit your needs or add unnecessary complexity. "Accept" is used when you are fully confident in the AI’s suggestions and ready to finalize the changes.
Last updated