CodeWhisperer's features are becoming a part of Amazon Q Developer. Learn more
Block completion
Block completion is used to complete your if/for/while/try
code
blocks.
CodeWhisperer's features are becoming a part of Amazon Q Developer. Learn more
Block completion is used to complete your if/for/while/try
code
blocks.
In the example below, in Java, a user enters the signature of an if
statement. The body of the statement is a suggestion from CodeWhisperer.
In the image below, using TypeScript and VS Code, CodeWhisperer recommends a way to complete the function.
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
CodeWhisperer.
In this example using Python and SageMaker AI Studio, CodeWhisperer recommends a block of code, based on the context.
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.