Reviewing suggestions
Tabnine AI code assistant: Reviewing suggestions
Last updated
Tabnine AI code assistant: Reviewing suggestions
Last updated
Once you get an answer from Tabnine Chat, review it. If you aren't satisfied with the answer, refine your original request with an alternative or a more specific prompt in the current or new session.
If you're happy with the response, you can add it to your code in one of the following ways.
Copy the answer (or part of it) and paste it into the relevant location in your code:
Click Copy, then paste the answer into the relevant location in your code:
Click Insert to copy and insert the code into the open file with one click.
The code is pasted at the cursor location or inside the selected block:
If the Chat answer is close enough to the current open file, a Show diff option appears. Click Show diff to see the specific change offered by Tabnine.
To paste the changes into the file, click Insert.
Diff insert is available in VS Code, JetBrains and Visual Studio 2022
In VS Code, you'll need to Accept each change inline:
If the context for local code awareness is enabled, by default the Tabnine chat tries to answer the user questions with context from the local workspace. When returning the answer to the user, Tabnine Chat is explicit about the context used to answer the question by including a list of references:
You can click each reference and get to the full code that was induced in the chat context.