/ask

/ask any free-text question about your code.

Use it to get ideas on how to make your code better, understand complicated flows, find useful fixes and much more.

Using /ask

  1. Open a file: Open a file in your project.

  2. Activate Qodo Gen: Click the Qodo Gen logo in the Extensions bar.

  3. Focus: Select the part of the code you want to ask a question about. It could be a few lines of code, a method, an entire file, your local changes and more. Check out our Focus documentation to learn more.

  4. Call the Command: Type your query in the chatbox and hit the send key or click the arrow button. You don't have to type /ask beforehand, since Qodo Gen Chat's default command is /ask.

  5. (Optional) Add optional instructions: You can ask Qodo Gen anything you want some elaboration on.

  6. Result! Qodo Gen will answer your question, provide code examples, offer improvements and more.

  7. (Optional) Continue your chat: To give Qodo Gen more instructions, just type a command or ask a question to keep chatting.

Example

Given this code snippet:

function sayHello(name) {
    return "Hello World! I'm " + name;
}

const user = "Username";
const hello = sayHello(user);

console.log(hello);

Command

/ask what does this function do?

Response

The sayHello function in TypeScript takes a single parameter
name and returns a greeting string.
Specifically, it concatenates the string "Hello World! I'm "
with the value of the name parameter.

For example, if you call sayHello("Alice"), it will return the
string "Hello World! I'm Alice".
This function is used to generate a personalized greeting message
by including the provided name in the returned string.

Last updated

Logo

2025 Qodo. All Rights Reserved.