Blog AI/ML How Code Suggestions can supercharge developers' daily productivity
May 25, 2023
3 min read

How Code Suggestions can supercharge developers' daily productivity

Learn how you can use GitLab Code Suggestions to accelerate your development.

ai-experiment-stars.png

This blog is the latest post in an ongoing series about GitLab’s journey to build and integrate AI/ML into our DevSecOps platform. The first blog post can be found here. Throughout the series, we’ll feature blogs from our product, engineering, and UX teams to showcase how we’re infusing AI/ML into GitLab.

In the fast-paced world of software development, time is a precious resource. Developers constantly strive for ways to improve the productivity and efficiency of their workflows. Enter Code Suggestions, a large language model (LLM)-based technology that can transform the everyday developer experience. Let’s delve into the novel use cases of Code Suggestions, including:

  • simplifying operations
  • assisting new developers in language explorations
  • eliminating the need for frequent web searches by experienced developers

All of these are examples of how Code Suggestions can accelerate the daily developer experience. Let’s explore some specific examples of these use cases.

Import packages

With Code Suggestions, developers can quickly complete mundane tasks like importing Python packages. Example

Complete functions

Code Suggestions can help developers complete functions and use those functions to write code. In the example below, we are defining the first and last name and then defining a full name. Now we can take this a step forward and use those defined functions in a user form. Example

Fill in boilerplate

Developers can use Code Suggestions to recommend boilerplate code such as connecting to a mySQL database. Example

Building data frames

Data manipulation is a fundamental task for developers working with structured data. Code Suggestions can simplify the process of offering intelligent recommendations for DataFrame operations. Code Suggestions can assist in saving developers the time and effort of searching through documentation or experimenting with trial and error. Example

Generate unit tests

With Code Suggestions, developers can quickly write unit tests for the supported programming languages. Example

Try Code Suggestions today

Code Suggestions is now available for free on GitLab.com for all users while the feature is in Beta. Teams can boost efficiency with the help of generative AI that suggests code while they're developing. We are improving the underlying AI model weekly to improve the quality of suggestions. Please remember that AI is non-deterministic, so you may not get the same suggestion from week to week. Also remember that any time you are using AI-generated code you should be automatically analyzing it with code quality and security scanning, both of which are available natively in the GitLab platform.

We’ve extended language support from our initial six languages to now include 13 languages: C/C++, C#, Go, Java, JavaScript, Python, PHP, Ruby, Rust, Scala, Kotlin, and TypeScript.

Read more about these improvements and what’s next.

Interested in using these AI-powered features? Join our waitlist and share your ideas.

Continue reading our "AI/ML in DevSecOps" series.

Disclaimer: This blog contains information about upcoming products, features, and functionality. It is important to note that the information in this blog post is for informational purposes only. Please do not rely on this information for purchasing or planning purposes. As with all projects, the items mentioned in this blog and linked pages are subject to change or delay. The development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab.

We want to hear from you

Enjoyed reading this blog post or have questions or feedback? Share your thoughts by creating a new topic in the GitLab community forum. Share your feedback

Ready to get started?

See what your team could do with a unified DevSecOps Platform.

Get free trial

New to GitLab and not sure where to start?

Get started guide

Learn about what GitLab can do for your team

Talk to an expert