The Code Whisper Magic with Amazon Code Whisperer
Nandini Rajaram
Posted on October 26, 2023
Amazon CodeWhisperer
A coding companion that is intended to improve developer efficiency and productivity with AI Power
Features of Code Whisperer
Supports Multiple programming languages and IDEs
CodeWhisperer supports 15 programming languages and can be used in several IDEs and code editorsLanguages Supported
- Java
- Python
- Java Script
- Type Script
- C#
- Script
- Ruby
- Go
- PHP
- C++
- C
- Shell
- Scala
- Rust
- Kotlin
- SQL
IDE Supported
- Amazon SageMaker Studio
- JupyterLab
- Visual Studio Code
- IDEs produced by JetBrains
- AWS Cloud9
- AWS Lambda console
Boost the speed of any coding process
- CodeWhisperer can understand comments given in natural language and generate multiple code ideas in real time. This tool has the potential to dramatically increase developer productivity by offering relevant code recommendations rapidly.
CodeWhisperer accelerates the implementation of unit tests
- It effectively incorporates logic for the majority of the explicit unit tests required and also makes suggestions for edge cases that may have gone unnoticed, increasing test coverage and ensuring comprehensive testing beyond what was initially planned.
How CodeWhisperer generate code?
- Prompts are the comments that you add to your code.
- CodeWhisperer uses your prompts to make suggestions.
- CodeWhisperer can create an entire function based on a comment that you add to your code in supported languages, and it adds the function to your code line by line, where you can review each line before accepting it.
Keyboard shortcuts for Amazon Code Whisperer
Demo : AWS CodeWhisperer integration with Cloud9 IDE
Prerequisite
- An EC2 Environment created in Cloud9
To activate CodeWhisperer in the AWS Cloud9 console code editor, complete these steps.
- Navigate to AWS Cloud9 Console
- Click Open link beside your Cloud9 Ec2 environment
- Go to Preferences
- Ensure that the two options related to Code Whisperer is enabled on Project Settings --> AWS Toolkit
- From inside your existing AWS Cloud9 environment, choose the AWS logo on the left edge of the window.
- A panel will expand rightward.
- In the lower part of the panel, under Developer tools, open the CodeWhisperer dropdown and choose Enable CodeWhisperer
The following YouTube video illustrates the Creation of java program in Amazon Cloud9 IDE using Amazon Code Whisperer
Note: Delete the cloud9 ec2 environment after use
💖 💪 🙅 🚩
Nandini Rajaram
Posted on October 26, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.