Using Amazon Q Developer for single-line code completion - Amazon Q Developer

Using Amazon Q Developer for single-line code completion

When you start typing out single lines of code, Amazon Q makes suggestions based on your current and previous inputs.

C++
An example of the single-line completion feature using C++.
JavaScript

In this example, Amazon Q completes a line of code that the developer begins.

An example of the single-line completion feature.
TypeScript

In this example, the user enters a full comment, and then Amazon Q supplies the code that goes with it.

An example of the single-line completion feature.
C#

In this example, Amazon Q provides a single-line recommendation based on a comment.

An example of the single line completion feature.
Shell

In the image below, Amazon Q offers recommendations on how to complete a single line of code.

An example of the single-line completion feature.
Java

When you start typing out single lines of code, Amazon Q makes suggestions based on your current and previous inputs.

In the example below, in Java, a user enters the string public into an existing class.

Based on the input, Amazon Q generates a suggestion for the signature of the main method.

An example of the single-line completion feature.
Python

In this example, Amazon Q recommends a single line of code, based on the developer's comment.

An example of the single-line completion feature.