Using Amazon Q Developer for block completion - Amazon Q Developer

Using Amazon Q Developer for block completion

Block completion is used to complete your if/for/while/try code blocks.

C
An example of the block completion feature using C
C++
An example of the block completion feature using C++.
Java

In the example below, a user enters the signature of an if statement. The body of the statement is a suggestion from Amazon Q.

An example of the block completion feature.
C#

In the image below, Amazon Q recommends a way to complete the function.

An example of the block completion feature.
TypeScript

In the image below, Amazon Q recommends a way to complete the function.

An example of the block completion feature.
AWS Toolkit for JetBrains

In the image below, a user has input the signature of an if statement. The body of the statement, System.out.println("negative"); is a suggestion from Amazon Q.

alt_text
Python

In this example, Amazon Q recommends a block of code, based on the context.

An example of the code block feature.