Amazon CodeWhisperer
Amazon CodeWhisperer is an AI Code Generator provided by AWS. It is trained on billions of lines of code and can generate code suggestions ranging from snippets to full functions in real-time based on your comments and existing code. It can help you bypass time-consuming coding tasks and accelerate building with unfamiliar APIs.
It supports 15 programming languages, including Python, Java, and JavaScript, and your favorite integrated development environments (IDEs), including VS Code, IntelliJ IDEA, AWS Cloud9, AWS Lambda console, JupyterLab, and Amazon SageMaker Studio.
Amazon CodeWhisperer has a free Individual Tier for individual use, including unlimited code suggestions, reference tracking, and 50 security scans per user per month. It also has built-in security scans that can detect hard-to-find vulnerabilities and provide code suggestions to remediate them immediately.
It also has 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 them before deciding whether to incorporate the suggested code.
Features of Amazon CodeWhisperer
Real-time code suggestions: 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 directly suggests entire functions and logical blocks of code (often consisting of up to 10–15 lines) in the integrated development environments (IDE) code editor.
Support for popular programming languages and IDEs: Amazon 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, and Scala. You can use the service from multiple 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).
Built-in security scans: With CodeWhisperer, you can scan Java, JavaScript, and Python projects to detect hard-to-find vulnerabilities. The service analyzes existing code in the IDE (whether generated by CodeWhisperer or written by you), identifies problematic code with high accuracy, and provides intelligent suggestions on how to remediate it.
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 them before deciding whether to incorporate the suggested code.
Watch this video to learn how to use CodeWhisperer in VS Code:
Hope you will give it a try and share your experience with us.