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++
-
- JavaScript
-
In this example, Amazon Q completes a line of code that the developer begins.
- TypeScript
-
In this example, the user enters a full comment, and then Amazon Q supplies the code that goes with it.
- C#
-
In this example, Amazon Q provides a single-line recommendation based on a comment.
- Shell
-
In the image below, Amazon Q offers recommendations on how to complete a single line of code.
- 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.
- Python
-
In this example, Amazon Q recommends a single line of code, based on the developer's comment.