Reviewing suggestions

Tabnine AI code assistant: Reviewing suggestions

How to review the Tabnine Chat suggestions

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.

Manual Copy and Paste

Copy the answer (or part of it) and paste it into the relevant location in your code:

Copy Function

Click Copy, then paste the answer into the relevant location in your code:

Insert Action

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:

Show Diff

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:

Show diff, Insert, and Accept in VS Code

Apply

Within Chat, you will have the option to apply suggestions directly to the relevant code snippet in your target file.

After generating a response, the Apply button will appear in the upper right-hand corner of the code snippet. Simply click and the code will be inserted.

You should receive confirmation of changes with a screen that lists the files where code changes were applied, similar to this:

Changes applied successfully using the 'Apply' button in Tabnine

References

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.

Last updated

Was this helpful?