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 it, and you might 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.

CodeWhisperer provides artificial intelligence (AI)–powered code suggestions for multiple programming languages, including Python, Java, JavaScript, TypeScript, C#, Go, Rust, PHP, Ruby, Kotlin, C, C++, Shell scripting, SQL, Scala, JSON, YAML, and HCL. You can use the service from multiple IDEs, including JetBrains IDEs (IntelliJ IDEA, Visual Studio, PyCharm, WebStorm, and Rider), Visual Studio (VS) Code, AWS Cloud9, the AWS Lambda console, JupyterLab, and Amazon SageMaker Studio.

Support for the command line

CodeWhisperer for the command line modernizes the command line with features such as personalized code completions, inline documentation, and AI natural-language-to-code translation. And, you don’t need to change the tools you use to start benefiting from CodeWhisperer for the command line: it includes support for your favorite command lines such as macOs terminal, iTerm2, and the built-in VS Code terminal. 

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 and AI-powered code remediation

Amazon CodeWhisperer identifies hard-to-find security vulnerabilities with built-in security scans, and provides code suggestions to remediate the identified issues. Built-in security scanning detects issues such as exposed credentials and log injection. Generative AI-powered code suggestions remediate the identified vulnerabilities, and are tailored to your application code, so you can quickly accept fixes with confidence. Security scanning is available for Java, Python, JavaScript, and for TypeScript, C#, AWS CloudFormation (YAML, JSON), AWS CDK (TypeScript, Python), and HashiCorp Terraform (HCL). Code suggestions to remediate vulnerabilities are currently available for code written in Java, Python, and JavaScript.

Code responsibly: Reference tracker for open source code

CodeWhisperer provides a built-in reference tracker that detects whether a code suggestion might resemble publicly available code 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 publicly available 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.

Enterprise administration

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.

Get started

Sign up for CodeWhisperer and start getting code suggestions today.

Learn more »

Start building with CodeWhisperer