Amazon CodeWhisperer Features
Real-time code suggestions customized for you
Trained on billions of lines of Amazon and publicly available code, Amazon CodeWhisperer understands comments written in natural language (in English) and can generate multiple code suggestions in real time to improve developer productivity. The service suggests entire functions and logical blocks of code (often consisting of up to 10–15 lines of code) directly in the integrated development environments (IDE) code editor. The generated code is similar to how you would write code, matching your style and naming conventions. You can quickly accept the top suggestion (tab key), view more suggestions (arrow keys), or continue writing your own code. Always review a code suggestion before accepting them, and you may need to edit it to ensure that it does exactly what you intended. As you type, CodeWhisperer even provides suggestions to complete the comment itself.
Support for popular programming languages and IDEs
Optimized for use with AWS services
CodeWhisperer makes it more efficient for developers to use AWS services by providing code suggestions that are optimized for AWS APIs including Amazon Elastic Compute Cloud (Amazon EC2), AWS Lambda, and Amazon Simple Storage Service (Amazon S3). As you write code in your IDE, CodeWhisperer automatically analyzes your code and comments. It makes a suggestion using the relevant cloud services and public software libraries for the desired functionality, and then it recommends code snippets that meet AWS best practices.
Built-in security scans
Code responsibly: Reference tracker for open-source code
CodeWhisperer provides a built-in reference tracker that detects whether a code suggestion might resemble open-source training data and can flag such suggestions. These suggestions are annotated with the open-source project’s repository URL, file reference, and license information so that you can review before deciding whether to incorporate the suggested code. All flagged suggestions that you used are logged so that you can review later and add license attribution at your discretion. You can also opt to filter out all code suggestions that CodeWhisperer determines resemble open-source code.
Code responsibly: Bias avoidance
Responsible use of AI and machine learning (ML) technologies is key to fostering continued innovation. CodeWhisperer helps developers avoid bias by filtering out code suggestions that might be considered biased and unfair.
Provide users or groups access to CodeWhisperer using single sign-on (SSO) with AWS IAM Identity Center integration. Manage group-wide policies, such as including suggestions with referenced code.