doc/editor_extensions/visual_studio/setup.md
To get the extension, use any of these methods:
GitLab for Visual Studio.The extension requires:
No new additional data is collected to enable this feature. Private non-public GitLab customer data is not used as training data. Learn more about Google Vertex AI Codey APIs Data Governance.
After you install the extension, connect it to your GitLab account by creating a personal access token and authenticating with GitLab.
If you are on GitLab Self-Managed, create a personal access token.
api and read_user scopes.To authenticate with GitLab:
https://gitlab.com.The GitLab extension uses the telemetry settings in Visual Studio to send usage and error information to GitLab. To enable telemetry in GitLab for Visual Studio:
This extension provides custom commands that you can use with GitLab. Most commands don't have default keyboard shortcuts to avoid conflicts with your existing Visual Studio configuration.
| Command name | Default keyboard shortcut | Description |
|---|---|---|
GitLab.ToggleCodeSuggestions | None | Turn on or turn off Code Suggestions. |
GitLab.OpenDuoChat | None | Open GitLab Duo Chat. |
GitLab.GitLabDuoNextSuggestions | <kbd>Control</kbd>+<kbd>Alt</kbd>+<kbd>N</kbd> | Switch to the next code suggestion. |
GitLab.GitLabDuoPreviousSuggestions | None | Switch to the previous code suggestion. |
GitLab.GitLabExplainTerminalWithDuo | <kbd>Control</kbd>+<kbd>Alt</kbd>+<kbd>E</kbd> | Explain selected text in the terminal. |
GitLabDuoChat.ExplainCode | None | Explain selected code. |
GitLabDuoChat.Fix | None | Fix issues for the selected code. |
GitLabDuoChat.GenerateTests | None | Generate tests for the selected code. |
GitLabDuoChat.Refactor | None | Refactor selected code. |
You can access the extension's custom commands with keyboard shortcuts, which you can customize:
GitLab..GitLab Duo features are enabled by default when you meet the prerequisites: