Set up Code Suggestions

GitLab Duo Code Suggestions is available for use through an editor extension in your IDE.

Prerequisites

Configure an editor extension

To use Code Suggestions, install the extension for your IDE, then authenticate and configure it for GitLab Duo. Code Suggestions is on by default.

In the GitLab Web IDE, Code Suggestions does not require additional configuration. You can start using Code Suggestions right away.

Verify that Code Suggestions is on

All editor extensions from GitLab, except Neovim, add an icon to your IDE’s status bar. Check the icon to verify that suggestions are working.

For example, in Visual Studio:

The status bar in Visual Studio.

Icon Status Meaning
tanuki-ai Ready You’ve configured and enabled GitLab Duo, and you’re using a language that supports Code Suggestions.
tanuki-ai-off Not configured You haven’t entered a personal access token, or you’re using a language that Code Suggestions doesn’t support.
The status icon for fetching Code Suggestions. Loading suggestion GitLab Duo is fetching Code Suggestions for you.
The status icon for a Code Suggestions error. Error GitLab Duo has encountered an error.