DEV Community

Cover image for The Code Whisper Magic with Amazon Code Whisperer
Nandini Rajaram for AWS Community Builders

Posted on

The Code Whisper Magic with Amazon Code Whisperer

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 editors

Languages 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

Image description

Image description

Image description

Demo : AWS CodeWhisperer integration with Cloud9 IDE


  • An EC2 Environment created in Cloud9

To activate CodeWhisperer in the AWS Cloud9 console code editor, complete these steps.

  • Navigate to AWS Cloud9 Console

Image description

  • Click Open link beside your Cloud9 Ec2 environment

Image description

  • Go to Preferences

Image description

  • Ensure that the two options related to Code Whisperer is enabled on Project Settings --> AWS Toolkit

Image description

  • From inside your existing AWS Cloud9 environment, choose the AWS logo on the left edge of the window.

Image description

  • A panel will expand rightward.

Image description

  • In the lower part of the panel, under Developer tools, open the CodeWhisperer dropdown and choose Enable CodeWhisperer

Image description

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

Top comments (1)

vijay_21 profile image
Vijay Ramanathan