Merge pull request #661 from Codium-ai/hl/ask_line

Hl/ask line
This commit is contained in:
Tal
2024-02-17 22:08:55 -08:00
committed by GitHub
17 changed files with 321 additions and 11 deletions

View File

@ -12,4 +12,13 @@ ___
<kbd><img src=https://codium.ai/images/pr_agent/ask.png width="768"></kbd>
___
## Ask lines
You can run `/ask` on specific lines of code in the PR from the PR's diff view. The tool will answer questions based on the code changes in the selected lines.
- Click on the '+' sign next to the line number to select the line.
- To select multiple lines, click on the '+' sign of the first line and then hold and drag to select the rest of the lines.
- write `/ask "..."` in the comment box and press `Add single comment` button.
<kbd><img src=https://codium.ai/images/pr_agent/Ask_line.png width="768"></kbd>
Note that the tool does not have "memory" of previous questions, and answers each question independently.