The Code Whisper Magic with Amazon Code Whisperer

nandinirajaram

Nandini Rajaram

Posted on October 26, 2023

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

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

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

💖 💪 🙅 🚩
nandinirajaram
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.

Related