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 Focus
  • Use Qodo Gen Chat with Focus
  • Commands
  • Usage Examples

Was this helpful?

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

Current File 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. It could be an entire file, function, method, or just a few lines of code.

Current File Focus uses the current file you're working on as Focus. Qodo Gen automatically sets your currently opened file as Focus.

How to set 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:

  • Entire file or component, like a function or method.

  • Selected Lines: Select lines in your code editor. They will automatically be set as Focus.

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

Current File Focus supports the following commands:

  • Ask any free-text question about your code.

  • Automatically generate docstrings.

  • Beautify and clean your code.

  • Understand how the selected code works.

  • Find relevant open-source code on GitHub.

  • Get suggestions to improve your code.

  • Automatically generate an entire test suite or just a few tests.

Usage Examples

  • Code Understanding and Documentation: Use /explain or /docstring for in-depth understanding and documentation of specific functions or classes.

  • Code Quality Improvement: Employ /enhance or /improve to refine your code with best practices, optimizations, and security enhancements.

  • Test Suite Generation: Leverage /test for automated generation of test cases tailored to your selected code.

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

Generate a best-practices.md file.

Learn more about Commands and how to use them in the .

command
/ask
/docstring
/enhance
/explain
/find-on-github
/generate-best-practices
/improve
/test
Commands documentation page