Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>GitLab WorkflowNew to Visual Studio Code? Get it now.
GitLab Workflow

GitLab Workflow

GitLab

gitlab.com
|
2,281,508 installs
| (86) | Free
Official GitLab-maintained extension for Visual Studio Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GitLab Workflow

The GitLab Workflow extension integrates GitLab into Visual Studio Code.

If you face an issue, check out our troubleshooting page and if it's not listed, please report it.

Minimum supported version

  • GitLab versions 16.1 and later. While many extension features might work with earlier versions, they are unsupported.
  • GitLab Duo Code Suggestions requires both:
    1. GitLab version 16.8 or later.
    2. VS Code 1.92.2 or later.
  • Security Findings requires GitLab Workflow version 3.74.0 or later, and GitLab Ultimate.

To find your GitLab version, visit /help (like https://gitlab.com/help).

Features

After you set up the extension, this extension adds GitLab features to your preferred IDE:

Manage projects and code

  • Clone a Git project.
  • Browse a GitLab repository without cloning it.

Manage issues and merge requests

  • View GitLab issues and merge requests. View issues, comments, merge requests, and changed files in the VS Code sidebar.
  • Build custom, saved searches to meet your needs.
  • Create and review merge requests.

Manage CI/CD pipelines

  • Manage your pipelines. View your pipeline status and open the related merge request. Use advanced pipeline actions to create, retry, or cancel a pipeline.
  • View CI/CD job output. View the output of a running or finished job in an editor tab.
  • Test your GitLab CI/CD configuration locally.
  • Auto-complete GitLab CI/CD variables in your .gitlab-ci.yml pipeline file.

AI-assisted features

  • GitLab Duo Chat: Interact with an AI assistant directly in VS Code.
  • GitLab Duo Code Suggestions: Suggest completions to your current line of code, or write natural-language code comments to get more substantive suggestions.

Other features

  • View security findings in your current branch
  • Manage snippets. Create and insert snippets, and create snippet patches.

Setup

This extension requires you to create a GitLab personal access token, and assign it to the extension:

  1. Install the extension from the Visual Studio Marketplace and enable it. If you use an unofficial version of VS Code, install the extension from the Open VSX Registry.
  2. To sign in to your GitLab instance, run the command GitLab: Authenticate.
    1. Open Visual Studio Code, then open the command palette by pressing Command + Shift + P.
    2. In the command palette, search for GitLab: Authenticate and press Enter.
    3. Select your GitLab instance URL from the offered options, or enter one manually.
      • When manually adding an instance to URL to GitLab instance, paste the full URL to your GitLab instance, including the http:// or https://. Press Enter to confirm.
    4. For GitLab.com, you can use the OAuth authentication method.
    5. If you don't use OAuth, use a Personal Access Token to log in.
      • If you have an existing personal access token with api scope, select Enter an existing token to enter it.
      • If you don't, select Create a token first, and the extension opens the PAT settings page for you. If this method fails, follow the instructions in the GitLab documentation.
    6. Copy the token. For security reasons, this value is never displayed again, so you must copy this value now.
    7. Paste in your GitLab personal access token and press Enter. The token is not displayed, nor is it accessible to others.

The extension automatically matches your Git repository remote URL with the GitLab instance URL you specified for your token. If you have multiple accounts or projects, you can choose the one you want to use. For more information, see Switch GitLab accounts in VS Code.

The extension is ready to use. If your project has a pipeline for the last commit, and a merge request from your current branch, information about both is displayed in the Visual Studio Code status bar.

Commands and extension settings

For a full list of GitLab commands you can run from the VS Code Command Palette, see:

  • Command Palette commands.
  • Extension settings you can configure.

Browse a repository without cloning

See Browse a repository in read-only mode in the GitLab documentation.

Roadmap

To learn more about this project's team, processes, and plans, see the Create:Editor Extensions Group page in the GitLab handbook.

For a list of all open issues in this project, see the issues page for this project.


Contribution

This extension is open source and hosted on GitLab. Contributions are more than welcome. Feel free to fork and add new features or submit bug reports. See CONTRIBUTING for more information.

A list of the great people who contributed this project, and made it even more awesome, is available. Thank you all! 🎉

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft