Qodo Documentation
HomepageBlogCommunityGet Started
  • Overview
  • Qodo Gen
  • Qodo Portal
  • Administrators Actions
  • Introduction
  • Quickstart
  • Setup and Installation
    • VSCode Installation
    • JetBrains Installation
    • Sign In
    • Extension Settings
    • Uninstall
  • Qodo Gen Chat
    • Agentic Mode
      • Agentic Tools (MCPs)
      • Built-in Tools (MCPs)
    • Standard Mode
      • Focus
        • Current File Focus
        • Git Diff Focus
      • Context
        • Add Entire Folder or Project as Context
        • Add Image as Context
      • Commands
        • /ask
        • /changelog
        • /commit
        • /describe
        • /docstring
        • /enhance
        • /explain
        • /find-on-github
        • /generate-best-practices
        • /help
        • /improve
        • /issues
        • /recap
        • /review
    • Inline Context
    • Chat History
    • Model Selection
    • Chat Preferences
  • Company Codebase (RAG)
    • Tagging
    • Configuration File
  • Code Completion
  • Test Generation
    • Configuring Your Test Setup
  • Data Sharing
  • Release Notes
Powered by GitBook
LogoLogo

Terms and Privacy

  • Terms of Use
  • Privacy Policy
  • Data Processing

© 2025 Qodo. All Rights Reserved.

On this page
  • How to set Git Diff Focus
  • Use Qodo Gen Chat with Focus
  • Commands
  • Usage Examples

Was this helpful?

  1. Qodo Gen Chat
  2. Standard Mode
  3. Focus

Git Diff Focus

Last updated 2 months ago

Was this helpful?

Focus is the part of your code that your conversation in Qodo Gen Chat centers around.

Git Diff Focus centers on Git changes across your entire project, enabling you to manage and review code changes effectively.

How to set Git Diff Focus

To choose Focus, click Select focus on the bottom left of the chatbox.

Usually, your Focus is automatically set to the file you currently have open. In this case, you can manually set it by clicking the file name in the bottom left corner of the chatbox.

For example, in this screenshot, you can set your Focus by clicking index.ts in the bottom left.

You can then select which component you'd like Qodo Gen to focus on:

  • Local Changes: Focus on all local changes made in your project.

  • Staged Changes: Focus on changes that have been staged for commit.

  • Committed Changes: Focus on changes that have already been committed. This option requires you to select a target branch to compare your changes against, enhancing the context for Qodo Gen's analysis and suggestions.

Use Qodo Gen Chat with Focus

The AI models behind Qodo Gen Chat will use the selected Focus to respond to your query accurately and in relation to the focused file, ensuring solutions that are relevant to your codebase.

Commands

Git Diff Focus supports the following commands:

  • Update the Changelog file with a summary of recent changes.

  • Generate commit messages for staged changes.

  • Get a title and description for your next pull request.

  • Get suggestions to improve your code.

  • Identify potential issues within the code, such as security vulnerabilities or bugs.

  • Summarize all changes in the selected changeset.

  • Get a comprehensive pull request review of the current changes, including analysis and feedback.

Usage Examples

  • Preparing for Commits: Use /commit or /describe to craft meaningful commit messages and pull request descriptions.

  • Code Quality Assurance: Use /review, /improve and /issues to enhance the quality and security of your code before finalizing changes.

  • Change Management: Use /recap and /changelog to maintain documentation and records of your project and ensure transparency.

After setting Focus, you can ask Qodo Gen any question or enter a .

command
/changelog
/commit
/describe
/improve
/issues
/recap
/review