About Amazon CodeWhisperer
The tool offers code recommendations for AWS APIs for the most popular services, including Amazon EC2, AWS Lambda, and Amazon S3. These recommendations are available for both frontend and backend development, with CodeWhisperer generating code to build and train ML models, as well as render objects in the UI using React. With CodeWhisperer, developers can save time and effort by generating code to upload files to Amazon S3 and even convert data from JSON to XML format.
The example provided shows how CodeWhisperer generates code to delete all files and objects in a given S3 bucket, render CSV text to an HTML DOM Table object and use AWS APIs to upload files to Amazon S3. The tool can be integrated with the AWS Toolkit for JetBrains, VS Code, and AWS Cloud9.
Overall, Amazon CodeWhisperer enables developers to responsibly use AI to create secure and syntactically correct applications at a faster pace, making it an essential tool for all developers who seek to increase their efficiency and productivity.
Machine Learning-Powered Code Recommendations
Accelerate Development of Various Applications
Integrates with Multiple Integrated Development Environments
The service integrates with multiple integrated development environments (IDEs), including JetBrains (IntelliJ IDEA, PyCharm, WebStorm, and Rider), Visual Studio Code, AWS Cloud9, and the AWS Lambda console, allowing developers to use their preferred IDE.
Generates Entire Functions and Logical Blocks of Code
Developers can write code faster with Amazon CodeWhisperer as it generates entire functions and logical blocks of code. These code snippets often consist of more than 10-15 lines of code, helping developers save time and effort.
Code Recommendations for AWS APIs
Provides Code Recommendations for Popular AWS Services
CodeWhisperer makes it easier for developers to use AWS services by providing code recommendations for AWS APIs across the most popular services, including Amazon Elastic Compute Cloud (EC2), AWS Lambda, and Amazon Simple Storage Service (S3).
Generates Code Based on Developer Intent and Patterns
With CodeWhisperer, developers can write code more efficiently as the service generates code based on their intent and matches their patterns and style. The service understands comments written in natural language, making it easy for developers to write code that meets best practices.
Provides Security Scans to Detect Vulnerabilities
Responsible Use of AI and ML Technologies
Filters Out Biased and Unfair Code Recommendations
To ensure responsible use of artificial intelligence (AI) and ML technologies, CodeWhisperer helps developers avoid bias by filtering out code recommendations that might be considered biased and unfair.
Trained on Various Data Sources
The service is trained on various data sources, including Amazon.com and open-source code. CodeWhisperer generates code similar to how a developer would write code, matching the developer's patterns and style.
Provides Reference Tracker
The reference tracker detects whether a code recommendation might be similar to particular CodeWhisperer training data and can provide references for the code. Developers can then more easily find and review that reference code and how it is used in the context of another project.
Complete Comment Recommendations
As developers type, CodeWhisperer provides recommendations to complete the comment itself. Developers have the option to accept the top recommendation, view more recommendations, or continue writing their own code.
Helps Developers Build Applications Responsibly
Easily Access the AWS Free Tier
Amazon CodeWhisperer allows developers to easily access the AWS Free Tier. This allows them to explore the various AWS services and experiment with CodeWhisperer's code recommendations without incurring any charges.
Amazon CodeWhisperer integrates with JetBrains integrated development evironments (IDEs) such as IntelliJ IDEA, PyCharm, WebStorm, and Rider, to offer developers a smoother integration with multiple tools that can assist their development process. JetBrains IDEs users can easily install Amazon CodeWhisperer and start writing code with ease as they have access to machine learning-powered code completions, code recommendations, and more. Amazon CodeWhisperer provides intelligent recommendations for entire functions, logical blocks of code, and AWS API nuances, allowing developers to focus on the problem at hand, ultimately improving developer productivity.
Visual Studio Code
Amazon CodeWhisperer provides seamless integration for users of Microsoft Visual Studio Code. Once installed, the tool provides developers with machine learning-powered code assisting capabilities, such as smart auto-completion, code snippet suggestions, and intelligent code recommendations for entire functions and logical blocks of code. With Amazon CodeWhisperer, developers can focus solely on developing and writing code, which ultimately improves development time and enables developers to work with ease seamlessly.
AWS Lambda Console
Amazon CodeWhisperer can be integrated into the AWS Lambda console. By doing so, developers can access machine learning-powered code-completion, code recommendations, and write entire functions with ease. Amazon CodeWhisperer provides code recommendations for AWS APIs across some of the most popular services, including Amazon Elastic Compute Cloud (EC2), AWS Lambda, and Amazon Simple Storage Service (S3). This integration enables developers to develop and deploy applications quickly and efficiently.
What is Amazon CodeWhisperer?
Why should I use CodeWhisperer?
Developers perform better when they receive recommendations powered by ML, and that's exactly what CodeWhisperer offers. With CodeWhisperer, developers can reduce their total development effort, allowing for more time to write creative code that sets them apart from their peers. This service can also help those developers without extensive cloud experience understand which cloud services and libraries are best suited for their projects a useful and time-saving service that can offer valuable support and potential savings of time and resources.
How does CodeWhisperer work?
CodeWhisperer works by analyzing comments, code, and the cursor location in the source code file, combined with an understanding of the best integration of cloud services and public libraries that are best suited for the task, to automatically generate context-specific code recommendations in your existing code. Powered by ML models trained on various data sources, including Amazon and open-source code, the provided code recommendations enable developers to accept, decline, or browse more alternatives by engaging its integration with JetBrains, Visual Studio Code, AWS Cloud9, or the AWS Lambda console.
Which programming languages and IDEs does CodeWhisperer support?
What contextual information does CodeWhisperer use to provide recommendations?
To provide effective recommendations, CodeWhisperer utilizes contextual information such as existing code, comments in English, and the cursor position in the source code file. The tool also analyzes other project files and applies its ML models to provide suitable recommendations based on the available information.
How can I get started with CodeWhisperer?
You can begin using CodeWhisperer by downloading the AWS IDE Toolkit extension, enabling CodeWhisperer, and then beginning to write code, or immediately comment-based coding to get the ball rolling.