qodo Gen is your AI-powered coding assistant and mentor. qodo Gen helps you understand your code, test it and review it with your team.
Sign in to start using qodo Gen.
Supports all programming languages!
- What can qodo Gen do?
- Using qodo Gen Shortcuts
- qodo Gen Chat
- Code Completion
- Tests Generation
- Learn More
- Support and Community
- Data Sharing
qodo Gen uses advanced AI models to deeply understand your code structure, logic, and context to help you write better code.
With qodo Gen, you can:
- Understand your code better.
- Improve code quality.
- Uncover potential bugs.
- Ease your PR process.
- Generate tests and Docstrings.
And much more.
Start using qodo Gen by clicking the qodo Gen logo in your Extensions bar.
Use qodo Gen's keybinding shortcuts:
- Linux:
alt+shift+c
- Mac:
cmd+ctrl+c
- Windows:
ctrl+win+z
qodo Gen Chat offers real-time coding assistance within your development environment. Use qodo Gen Chat for:
-
Improving your code:
From making it more secure to beautifying and cleaning it. -
Understanding your code better:
Simplify onboarding for new or junior developers by providing in-depth insights into your codebase. -
Asking free-style questions about your code:
Get instant answers to any code-related question using AI-powered free-form queries. -
Generating docstrings:
Improve code maintainability by generating docstrings. -
Generating unit tests and test suits:
Secure and eliminate bugs in your code by adding extensive testing.
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 Chat query, make sure to choose the most relevant Context. This will help qodo Gen Chat's AI models tailor the best response for you.
Learn more about Context in this document and in our documentation portal.
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 Add focus
on the bottom left, or type @
in the chatbox.
You can then select one of two Focus types:
-
Current File: Focuses on the current file you're working on.
When choosing Current File Focus, you have to choose a Secondary Focus option. The Secondary Focus refines the context for qodo Gen Chat's responses.
There are two options for Secondary Focus:
-
Git Diff: Include Git changes across your entire project, enabling you to manage and review code changes effectively.
To choose Git Diff click on
@
and selectGit Diff
.
You can then choose to focus on eitherLocal Changes
,Staged Changes
orCommitted Changes
.Git-Diff supports commands for managing commits, documentation, code quality, and more.
Think of Context like the brain of qodo Gen Chat. The Context is what qodo Gen's AI models know about your code and what they use to give the best, most accurate response.
Adding more context will give more accurate and relevant responses, so choosing context is an important part of using qodo Gen Chat to your advantage.
There are multiple ways to add Context to qodo Gen Chat:
-
Code Snippet: Select a few lines of code from your project to add as context.
Usage: Select a code snippet, right-click and choose
Add to qodo Gen as context
.Shortcuts:
-
VSCode:
- Mac:
Cmd+Shift+E
- Windows:
Ctrl+Shift+E
- Mac:
-
JetBrains:
- Mac:
Cmd+Option+Comma
- Windows:
Ctrl+Alt+Comma
- Mac:
-
-
Files: Select any file from your project to add as context.
Usage: Click on
@
or type@
in the chatbox, and selectAdd a file or a folder
.
Alternatively, right-click any file from your project and chooseAdd to qodo Gen as context
. -
Folder: Select any folder from your project to add as context.
Usage: Click on
@
or type@
in the chatbox, and selectAdd a file or a folder
.
Alternatively, right-click any folder from your project and chooseAdd to qodo Gen as context
. -
Entire Project: Select your entire project to add as context.
Usage: Click on
@
or type@
in the chatbox, and selectAdd a file or a folder
. Under the searchbar, chooseFull project
. -
Image: Select any image to add as context.
For example, add an image of a required design and qodo Gen Chat will help you create it.Usage: Click on
@
or type@
in the chatbox, and selectUpload an image
.
Commands are what qodo Gen Chat is all about. Call a command to unlock all of qodo Gen Chat's capabilities.
To call commands either:
- Type them directly in the chatbox with a leading slash
/
. - Manually select lines from your code, right-click and choose
qodo Gen
, then pick a command from the list.
-
/ask
: Ask any free-text question about your code. -
/explain
: Understand how the selected code works. -
/improve
: Get suggestions to improve your code. -
/enhance
: Beautify and clean your code. -
/docstring
: Automatically generate docstrings. -
/find-on-github
: Find relevant open-source code on GitHub. -
/quick-test
: Automatically generate unit tests. -
/test-suite
: Get step-by-step examples to create a test suite.
Find out more about qodo Gen Chat Commands on our documentation portal.
After receiving your response, click Continue this chat
to keep the conversation going. Your current chat will be used as context for the rest of the conversation.
You can find out more about qodo Gen Chat in our documentation portal.
qodo Gen Code Completion is a powerful tool designed to accelerate your coding process, reducing the need for repetitive tasks such as copying and pasting code snippets from the internet.
By enabling Code Completion, qodo Gen learns from your codebase and provides real-time suggestions that seamlessly integrate with your writing flow.
Code Completion is a Pro feature, exclusively available for Teams and Enterprise users. Visit Qodo's website to learn more.
As you type, qodo Gen analyzes your code in real-time to grasp your intention. It then presents code completions in a grayed-out format directly in your editor. These suggestions aim to complete your current line of code or offer snippets that fit the context of your work. To accept a suggestion, simply press the Tab key, and the completion will be inserted into your code.
Configure qodo Gen Extension settings to customize Code Completion to suit your specific coding style and needs.
Provide general instructions to guide qodo Gen in generating code completions. This customization ensures that the suggestions are not only accurate but also align with your preferences and project requirements.
Learn how to configure your Code Completion settings.
You can find out more about Code Completion in our documentation portal.
qodo Gen leverages advanced AI technology to generate comprehensive tests for any programming language.
Test generation boosts productivity, enhances code quality and simplifies the development process, helping you deliver reliable, high-performance software with ease.
- For a function, class or method: Click the
Test this function
button above the function declaration. - For code snippets: Select the code you want to test. Right-click on your selection and choose
qodo Gen
. From the dropdown menu chooseGenerate Tests
.
The qodo Gen Testing tab will open.
The more context, the better the tests generated by qodo Gen.
Provide test examples to qodo Gen in the test box and improve your generated tests.
The Behaviors Coverage section categorizes function behaviors into three main types, each representing a different aspect of how your code operates:
- Happy Path: The ideal and expected use cases of your code, where everything operates as intended without any errors or exceptions.
- Edge Case: The boundaries of your code's logic, handling unusual or extreme inputs or scenarios that might not be immediately obvious.
- Other: Less common use cases not fitting into the first two categories.
Click on Generate test
next to any behavior to generate a test for a specific behavior type.
In this section you can find tests generated by qodo Gen and run them.
Alternatively, you can Run and auto-fix
: if a test fails, qodo Gen will attempt to fix it automatically and re-run it.
qodo Gen uses your codebase as Context to generate the most relevant tests. You can manage this Context in the Context
tab.
You can improve and personalize your test suite in the Configuration
section.
- Provide test examples and improve your generated tests: The more context, the better the outcome. qodo Gen uses examples to improve tests generation.
- General instructions: Customize your test generation by choosing your preferred testing framework, number of tests required and giving hints.
- Configuration file management: Ensure consistency across your project or team and save settings to a TOML file. Learn more about the configuration file.
Find out more about test generation in our documentation portal.
- Click on the Qodo button in the bottom status bar.
- Hover over the authentication notification, select the settings icon and choose the
Manage Extension
option. - qodo Gen Extension will open in a new tab. Select Uninstall and reload VSCode.
Find out more about qodo Gen and other Qodo products in our documentation portal.
Need help? Visit our FAQ and troubleshooting guide.
Similar to other popular generative-AI tools, we transmit code snippets to our servers. You can learn more in our terms of use and privacy policy.
You can opt out of sharing data with Qodo.
Go to the extension's settings and check the box Opt out of sharing my data with Qodo
.