Skip to content
| Marketplace
Sign in
Visual Studio>Tools>GitLab
GitLab

GitLab

GitLab

gitlab.com
|
3,384 installs
| (0) | Free
GitLab Extension for Visual Studio (Beta)
Download

GitLab Extension for Visual Studio IDE (Beta)

This is the GitLab extension for Visual Studio (Community/Pro/Enterprise). This is not the extension for Visual Studio Code.

All feedback should be directed to this issue.

Minimum Supported Version

The GitLab for Visual Studio extension supports Code Suggestions for both GitLab SaaS and GitLab self-managed.

This extension only supports Visual Studio 2022 as of the beta release.

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.
  2. Create a GitLab Personal Access Token with the api and read_user scopes:
  3. Copy the token. For security reasons, this value is never displayed again, so you must copy this value now.
  4. Open Visual Studio, then navigate to Tools -> Options -> GitLab
    1. Paste the recently created token in to the Access Token field. The token is not displayed, nor is it accessible to others.
    2. Provide the URL of your GitLab instance in the GitLab URL field. For GitLab SaaS, use https://gitlab.com.

Features

Code Suggestions (Beta)

Write code more efficiently by using generative AI to suggest code while you’re developing. To learn more about this feature, see the Code Suggestions documentation

This feature is in Beta Code Suggestions is a generative artificial intelligence (AI) model. GitLab currently leverages Google Cloud’s Vertex AI Codey API models

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

Beta users should read about the known limitations

Supported Languages

  • C++
  • C#
  • Go
  • Google SQL
  • Java
  • JavaScript
  • Kotlin
  • PHP
  • Python
  • Ruby
  • Rust
  • Scala
  • Swift
  • TypeScript

Usage

  • Tab accepts suggestion
  • Escape dismisses suggestion

Status Bar

A status icon is displayed in the status bar. It provides the following:

  1. A button that can quickly disable/enable code suggestions.
  2. Display a code suggestion in progress icon.
  3. Display an error icon and provide an error message as tooltip.
  4. Before the extension has been configured, the error icon will be shown with a message about configuration.

status_bar_visual_studio.png

Troubleshooting

See the troubleshooting documentation.

Report issues in the feedback issue.


Contributing

This extension is open source and hosted on GitLab. Contributions are more than welcome and subject to the terms set forth in CONTRIBUTING -- feel free to fork and add new features or submit bug reports. See CONTRIBUTING for more information.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft