Current File Focus
Last updated
Last updated
2025 Qodo. All Rights Reserved.
Focus is the part of your code that your conversation in Chat centers around. It could be an entire file or just a few lines of code.
Current File Focus uses the current file you're working on.
Qodo Gen automatically sets your currently opened file as Focus. You can also choose your Focus manually by typing @
or clicking on @
, and selecting Current File
.
When choosing Current File Focus, you have to choose a Secondary Focus option. The Secondary Focus refines the context for Chat's responses.
When using Current File Focus, there are two options for Secondary Focus:
Selected Lines: Manually select lines in your code to set as the focus for your request.
Component: Select specific code components from the bottom right part of the chatbox. The components consist of functions, methods and classes automatically detected from the current file.
Add Focus: Type @
or click on @
, and select Current File
.
Choose Secondary Focus: From the dropdown list on the bottom right on the chatbox, choose between Selected Lines or Component based on your requirement.
Execute a Command: Type in your desired command (/ask
, /docstring
, etc) followed by your question or request.
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.
/generate-best-practices
Generate a best-practices.md
file.
Get suggestions to improve your code.
Automatically generate unit tests.
Get step-by-step examples to create a test suite.
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-suite
or /quick-test
for automated generation of test cases tailored to your selected code.