PureCode AI
  • PureCode AI Extension
  • Getting Started
    • Getting Started
  • Features
    • Chat
      • @Features
        • @Docs
        • @Files
        • @Folder
        • @Code
        • @Git
        • @Terminal
        • @UI
    • Dual Operation Modes
      • Normal Mode [ Chat ]
      • Agent Mode
      • Switching Between Modes
    • Context Awareness
      • Normal Indexing
      • Advance Indexing
    • Human-like Code Understanding with @codebase
    • Interactive Planning Mode
    • Adaptive Learning Preferences
    • Global and Project Custom Instructions
      • Global Instructions
      • Project Chat Instructions:
    • Docs Indexes and UI Docs Indexes
      • Docs Indexes
      • UI Docs Indexes
    • "Reject" and "Accept"
    • Image-to-Code
    • Video Tutorial's
    • Prompting Techniques
    • Chat Vs Codebase Chat
    • Solving Errors
  • Frequently Asked Questions
  • Changelog
Powered by GitBook
On this page
  • 1. Reject - Discarding Unwanted Suggestions
  • 2. Accept - Finalizing Code Suggestions
  • Individual and Multi-file Acceptance
  1. Features

"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.

Hint: When the Chat feature is enabled, the AI may suggest more generic approaches like Redux. But with Codebase Chat and Advanced Indexing turned on, the AI will tailor its suggestions to match your specific setup, like using the Context API.

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.

Note: Once you accept changes, you cannot reject them. This action is final and should be used when you are confident in the AI’s suggestions. You can use the git help to undo the changes if u don't prefer after accepting the changes.

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.

PreviousUI Docs IndexesNextImage-to-Code

Last updated 25 days ago