Using Amazon Q Developer for block completion - Amazon Q Developer
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

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.
Python

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

An example of the code block feature.