- Download the extension
- Configure the extension
- Code Suggestions (Closed Beta)
- Report issues with the extension
- Related topics
GitLab Workflow extension for VS Code
The GitLab Workflow extension integrates GitLab with Visual Studio Code. You can decrease context switching and do more day-to-day tasks in Visual Studio Code, such as:
- View issues.
- Run common commands from the Visual Studio Code command palette.
- Create and review merge requests directly from Visual Studio Code.
- Validate your GitLab CI/CD configuration.
- View the status of your pipeline.
- View the output of CI/CD jobs.
- Create and paste snippets to, and from, your editor.
- Browse repositories without cloning them.
Download the extension
Download the extension from the Visual Studio Code Marketplace.
Configure the extension
After you download the extension you can configure:
- Features to display or hide.
- Self-signed certificate information.
Code Suggestions (Closed Beta)
Introduced in GitLab 15.9 as Closed Beta.
Code Suggestions empower your developers to code more efficiently by suggesting code as they type. Depending on the cursor position, the extension either:
- Provides entire code snippets, like generating functions.
- Completes the current line.
Developers can press Tab</tab> to accept suggestions.
Code Suggestions support the following languages with the highest confidence:
- C
- C++
- Java
- JavaScript
- Go
- Python
Suggestions may be mixed for other languages.
Enable Code Suggestions
Prerequisites:
- You have been granted access to the Closed Beta.
- You have created a personal access token
with the
read_api
andread_user
scopes.
To enable Code Suggestions in VS Code:
- Download and configure the GitLab Workflow extension for Visual Studio Code.
- In GitLab: Add Account to VS Code on Mac, add your GitLab work account to the VS Code extension:
- In macOS, press Shift + Command + P.
- In Windows, press Shift + Control + P
- Provide your GitLab instance URL. A default is provided.
- Provide your personal access token.
- After your GitLab account connects successfully, in the left sidebar, select Extensions.
- Find the GitLab workflow extension, and select Settings ().
- Enable GitLab › AI Assisted Code Suggestions.
Start typing and receive suggestions for your GitLab projects.
Report issues with the extension
Report any issues, bugs, or feature requests in the
gitlab-vscode-extension
issue queue.
Related topics
- Download the extension
- Extension documentation
- The extension source code is available in the
gitlab-vscode-extension
project.