Set up Code Suggestions
GitLab Duo Code Suggestions is available for use through an editor extension in your IDE.
Prerequisites
- GitLab Duo Core turned on.
- A supported language and IDE.
- A default GitLab Duo namespace set, or a project open that has GitLab Duo access.
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.
- Visual Studio Code
- GitLab Duo plugin for JetBrains IDEs
- Visual Studio
gitlab.vimplugin for Neovim- GitLab for Eclipse
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: