Focus
Last updated
Was this helpful?
Last updated
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 or just a few lines of code.
Select the focus that best fits your current coding task or question. Consider the scope of your query and what it relates to.
To get the best, most relevant results to your query, make sure to choose the most relevant Context.
Choosing Context will help Chat's AI models tailor the best response for you.
You can switch the focus at any time based on the evolving needs of your development work. Qodo Gen seamlessly adapts to the selected focus and updates the context it's using.
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 one of two Focus types:
Current File or Component: Focuses on a specific file or component.
You can choose that Qodo Gen would focus on the entire file or a specific component, like a function or method.
Git Diff: Include Git changes across your entire project, enabling you to manage and review code changes effectively. You can choose from local, staged, and committed changes.
To remove Focus, click on the X button next to your set Focus.