General

Q: What is Amazon CodeWhisperer? 

CodeWhisperer is a machine learning (ML)–powered service that helps improve developer productivity by generating code recommendations based on developers’ prior code and comments. With CodeWhisperer, developers can write a comment that outlines a specific task in plain English, such as “Upload a file with server-side encryption.” Based on this information, CodeWhisperer automatically determines which cloud services and public libraries are best suited for the specified task and recommends a code snippet directly in the integrated development environment (IDE). Developers can accept the top recommendation, view more recommendations, or continue writing their own code.

For more information, see the User Guides for AWS Cloud9, JetBrains, and Visual Studio Code.

Q: Why should I use CodeWhisperer? 

CodeWhisperer helps improve developer productivity by providing ML-powered code recommendations to reduce their total development effort and allow more time for ideation and writing differentiated code. 

Q: How does CodeWhisperer work?

With CodeWhisperer, developers can write a comment in their IDE’s code editor. CodeWhisperer automatically analyzes the comment, determines which cloud services and public libraries are best suited for the specified task, and recommends a code snippet directly in the source code editor. The code recommendations provided by CodeWhisperer are based on ML models trained on various data sources, including Amazon and open-source code. Developers can accept the top recommendation, view more recommendations, or continue writing their own code.

Q: Which programming languages and IDEs does CodeWhisperer support?

Available as part of the AWS IDE Toolkit, CodeWhisperer integrates with multiple IDEs—including JetBrains, Visual Studio Code, AWS Cloud9, or the AWS Lambda console—and currently supports C#, Java, JavaScript, Python, and TypeScript.

Q: What contextual information does CodeWhisperer use to provide recommendations?

CodeWhisperer uses the contextual information in the IDE, including the code and the comments (in English), and the cursor location in the source code file as contextual information. The service also analyzes the code in the current file and other files in the developer’s project to generate its recommendations.

Q: How can I get started with CodeWhisperer?

You can download the AWS IDE Toolkit extension on your preferred IDE . After the extension is installed and CodeWhisperer is enabled, you can start writing code or comments and automatically receive code recommendations in your IDE’s code editor.

Q: After activating the service, where will I see recommendations from CodeWhisperer?

You will receive code recommendations in your IDE’s code editor after CodeWhisperer is enabled.

Q: What guidelines can developers follow to get better results from CodeWhisperer? 

CodeWhisperer works most efficiently when developer comments are short and map to smaller discrete tasks so that no single function is too long. Similarly, CodeWhisperer can generate helpful code recommendations when developers use intuitive names for various code elements, such as function names and docstrings (a type of code comment). Even after following these recommended guidelines, recommended code might not always work as intended and could require the developer to either edit the recommended code or continue writing code so CodeWhisperer can suggest better recommendations. Developers can also use the CodeWhisperer toggle in the AWS Toolkit panel to switch off auto suggestions.

Q: What is the CodeWhisperer reference tracker?

The CodeWhisperer reference tracker detects whether a code recommendation might be similar to particular CodeWhisperer training data and can provide those references to you. You can then more easily find and review that reference code and see how it is used in the context of another project.

Q. Who owns the code generated by CodeWhisperer?

Developers own the code and are responsible for it.

Q: Where did AWS obtain the training data to build this service?

CodeWhisperer code generation is powered by ML models trained on various data sources, including Amazon and open-source code.

Q: Does CodeWhisperer use developer-written code to improve its ML models? 

During the preview, no developer-written code will be used to train CodeWhisperer models.

Q:. What data is collected by CodeWhisperer?

CodeWhisperer collects relevant information such as the context of the file (code/comments) that is used to provide the recommendation and the developer action taken once the recommendation is provided. For more information, see the documentation CodeWhisperer for JetBrains and the AWS Toolkit, CodeWhisperer for VS Code.

Pricing and availability

Q: How much does CodeWhisperer cost?

During the preview period, developers can use CodeWhisperer at no cost.

Q: In which AWS Regions is CodeWhisperer available?

CodeWhisperer is Region agnostic and available to developers worldwide.

Enterprise administration

Q: How can I enable CodeWhisperer for my organization? 

An AWS administrator can enable Amazon CodeWhisperer for an organization through the AWS Management Console. As a prerequisite, administrators must set up single sign-on (SSO) through AWS IAM Identity Center (previously known as AWS Single Sign-On), if not already enabled for their organization. Once SSO authentication is set up, administrators can enable CodeWhisperer and assign access to users and groups in their organization.

Note: During the preview, AWS requires that the organization SSO be set up in the US East (N. Virginia) Region.

Q: How do I set up SSO?

SSO for CodeWhisperer is enabled by IAM Identity Center. During the preview, you are required to set up the SSO in the US East (N. Virginia) Region. For instructions, review Prerequisites and considerations in the AWS IAM Identity Center User Guide.

Q: What if my SSO is configured in a different Region other than the US East (N. Virginia) Region? 

During the preview, AWS only supports SSO configured in the US East (N. Virginia) Region. To enable CodeWhisperer, you must first delete your current IAM Identity Center configuration that is configured in a different Region. Switching to a different Region also changes the URL for the AWS access portal, and you must reconfigure all permission sets and assignments to the US East (N. Virginia) Region. For more details, see IAM Identity Center Region Availability.

Q: How do I configure CodeWhisperer settings for my organization?

AWS administrators can configure settings for their organization through the AWS Management Console. Once configured, the settings apply to all users for the organization.

Q: How do I opt in or opt out of data sharing for CodeWhisperer service improvement?

You can opt out of data sharing for the purpose of CodeWhisperer service improvement. For instructions on how to opt out and opt in, see the documentation.

Q: Which support plans are provided for CodeWhisperer?

Depending on your AWS Support contract, CodeWhisperer is supported under Developer Support, Business Support, and Enterprise Support plans.

Learn more about Amazon CodeWhisperer


Visit the product detail page.

Learn more 
Sign up for a free account



Instantly get access to the AWS Free Tier. 

Sign up 
Find out how CodeWhisperer works

Learn how CodeWhisperer can help your business.

Check out CodeWhisperer features