• Services

    Services

    Explore our range of services designed to drive innovation and transform your business with cutting-edge technology solutions tailored to your needs

    AI/ML

    Data Analytics

    Cybersecurity

    Sales & Commerce

    UI/UX

    Guidewire

    Duck Creek

    OTT

    Cloud

    Product Engineering

    FinTech

    Digital Marketing

    ADM

    “Partnering with tringapps transformed our digital strategy with cutting-edge solutions, enhancing performance, scalability, and security and boosting our efficiency by 50%. Their expertise in innovation and execution made a tangible impact on our success.”

  • Insights
  • About us
  • Careers
  • Contact us
logo
logoImage closeIcon
  • Services
    subMenuIndicator
  • Insights
  • About us
  • Careers
Share on LinkedIn Share on X (Twitter) Visit Instagram Share on Facebook
  • Services

Faster Coding with AWS Code Whisperer

  • 530 Views
  • 04 Jan 2023

Are you aiming for high code productivity and speed in 2023? Code Whisperer, an ML-powered service helps with recommendations for increased productivity and faster coding. In this blog, I will talk about Code Whisperer, and its features, as well as provide a brief demonstration of how to use Code Whisperer with VS Code.

What is Amazon Code Whisperer?

Amazon Code Whisperer is an ML-powered service provided by AWS. It generates suggestions automatically based on your previous code and comments. Code Whisperer also scans your code (both generated by Code Whisperer and written by you) for vulnerabilities and security issues.

Code Whisperer is trained on various data sources including Amazon.com. While traditional autocompletion tools provide single-word completions, Code Whisperer provides a much better productivity boost by generating entire functions and logical code blocks at a time. Also, Code Whisperer understands the developer’s intent as expressed through plain English comments.

For example, a developer can simply write a comment in plain English such as “Create an EC2 Key Pair using boto3”, using this comment, Code Whisperer recommends the best code snippets directly in IDE. The same example is demonstrated step by step below.

Challenges before Code Whisperer

As there are multiple programming languages, libraries, and frameworks, developers spend a lot of time ensuring that they follow the correct syntax and best practices.

Now, here is where Code Whisperer comes into play. When writing the code, the code whisperer looks for the comments and prior codes. It will use those as input to the ML model and will generate multiple recommendations. This recommendation will automatically appear in the IDE that meets best practices which helps the developers to stay focused.

Supported Languages

  • Python
  • Java
  • JavaScript
  • Typescript
  • C#

Supported IDEs

  • JetBrains
  • VS Code
  • Cloud9
  • Lambda Console

First-class support for AWS APIs

Code Whisperer simplifies the use of AWS services for developers by providing code recommendations for AWS APIs across the most popular services, such as Amazon Elastic Compute Cloud (EC2), AWS Lambda, and Amazon Simple Storage Service (S3). As you write code in your IDE, Code Whisperer analyses the comments, assembles the code using the relevant cloud services and public software libraries for the desired functionality, and then recommends code snippets and even entire functions that meet best practices directly in the IDE.

First-class support for AWS APIs

Reference Tracker

A reference tracker in Code Whisperer can detect and notify when generated outputs are similar to specific training data. Even though the model has understood how to write code and generates entirely new code based on the learning, an independently generated code recommendation could resemble a unique code snippet in the training data in very rare cases. Code Whisperer makes it easier for you to decide whether to use the code in your project and make the appropriate source code attributions by notifying you when this occurs and providing you with the repository and licensing information.

Reference Tracker

Bias Avoidance

Code Whisperer has bias detection techniques based on common stereotypes. It includes filters for detecting obvious bias in generated code and removing code recommendations that may be deemed biased and unfair.

Consider a recruiting software that assists hiring managers by automatically shortlisting candidates. The software relies on tie-breaker logic in the event of a tie. An AI model may generate code that favors candidates based on inappropriate parameters while generating a recommendation for this scenario. Code Whisperer can detect bias in recommendations and filter them out before they are shown to the developer.

Security Scan

Security is job number one and as a result, Code Whisperer includes the ability to run scans on your code (both generated by Code Whisperer and written by you) to detect security vulnerabilities. When you select Run Security Scan, Code Whisperer detects and displays the vulnerability.

Security Scan

How to enable Code Whisperer in VS Code

Go to your extensions tab in your left pane and search for AWS Toolkit and install it.

How to enable Code Whisperer in VS Code

AWS Toolkit Extension

After you’ve installed the aforementioned extension. When the installation is complete, the AWS icon will appear in the left pane.

Open the AWS extension, which should be visible in the left pane. Click on start under Code Whisperer to see connection options to get started with the Code Whisperer. Select and connect with the appropriate option.

AWS Toolkit Extension

How to use Code Whisperer?

This demonstration shows how to use code whisperer to generate an EC2 keypair with boto3.
As previously stated, Code Whisperer reads plain English text, feeds it into the ML model, and then displays a recommendation. In our case, Code Whisperer reads the comment “Create EC2 Key Pair using boto3” and provides step-by-step instructions for creating the key pair.

  • Press TAB to accept a suggestion
  • Press ALT + C to force a suggestion
  • To switch between suggestions, Use the left and right arrow keys to navigate
How to use Code Whisperer 1
How to use Code Whisperer 2
How to use Code Whisperer 3
How to use Code Whisperer 4
How to use Code Whisperer 5

Security scans are also supported by Code Whisperer. When you select “Run Security Scan”, Code Whisperer detects and displays vulnerabilities. There are no security issues in the code,as shown at the bottom right of the screen.

How to use Code Whisperer 6

How to use Code Whisperer for programming languages?

Another short illustration to Sum two numbers in python using Code Whisperer.

How to use Code Whisperer for programming languages 1

In this case, Code Whisperer understands the developer’s intent and automatically shows a recommendation to sum two numbers getting user input from the user and gives a snippet for the recommendation.

How to use Code Whisperer for programming languages 2

Conclusion:

We learned about Amazon Code Whisperer, its features, and use cases in this blog. All the developer has to do is stay focused on the IDE and take advantage of real-time contextual recommendations that have already been customized and are ready to use. Based on this, Code Whisperer generates code snippets on the fly and recommends them directly in the IDE, allowing you to code faster and more efficiently.

Social Share
Prev Post Six Ways to Reduce…
Next Post Cloud Modernization v/s Cloud…

Related Post

04 Sep 2022

The future is Data Lakehouse and you need to embrace…

In recent years, we have witnessed the emergence of a new data…

21 Oct 2022

Creating a connector to Power BI from AWS Athena

“ In this era of the information economy, data has become the…

Written by

Prashanth Gnanadesikan

Recent Articles
  • Fortifying Your Cloud: The Power of Minimal Human Interaction in Data Security
  • Cloud Security Unveiled: Crafting an Effective Incident Management Plan for a Secure Cloud
  • Safeguarding Your Cloud: Elevating Privacy and Security in the Digital Age
  • Unleashing the Power of Traceability in Cloud Security: A Comprehensive Guide
  • Building a Secure Cloud: The Importance of Identity Management
Search
Categories
  • AEM(2)
  • AI/ML(6)
  • Blogs(23)
  • Case study(37)
  • Cloud(6)
  • Cloud Computing(6)
  • Cloud Solutions(8)
  • Cost Optimization(1)
  • Cybersecurity(2)
  • Data Analytics(6)
  • Databricks(1)
  • eCommerce(3)
  • Guidewire(1)
  • Infrastructure(1)
  • OTT/Media(3)
  • SAP(1)
  • Serverless Computing(2)
  • Services(18)
  • Snowflake(3)
  • Support(1)
  • Technology(7)
Search Objects
Categories
  • AEM
  • AI/ML
  • Blogs
  • Case study
  • Cloud
  • Cloud Computing
  • Cloud Solutions
  • Cost Optimization
  • Cybersecurity
  • Data Analytics
  • Databricks
  • eCommerce
  • Guidewire
  • Infrastructure
  • OTT/Media
  • SAP
  • Serverless Computing
  • Services
  • Snowflake
  • Support
  • Technology
Popular Tags
data management data storage data warehouse vs data lake data warehouse vs data lakehouse

TRUSTED PARTNERSHIPS

OUR VALUED CLIENT

ic_eonline
ic_food_network
ic_kimberly_clark
ic_nbc
ic_overstock
ic_people
ic_realsimple
ic_reuters
ic_barclays
ic_scholastic
ic_sports_illustrated
ic_bloomberg
ic_cnbc
ic_wolter_kluwer
ic_entertainment_weekly
ic_jpmorgan
ic_bank_of_america
ic_decision_next
ic_HBOGO
ic_tribune_media
ic_Disnep Movie
ic_ap
ic_cedars_sinai
ic_chubb
ic_cinemax
ic_cnbc
ic_fidelity
ic_grio
ic_musc
ic_sopheon
ic_tact
ic_time
ic_nbc_universal
ic_zerosum
ic_gsk
ic_handlr
ic_hunt_killer
ic_jdrf
ic_kaplan
ic_kohl_s
ic_mobitv

GREAT OPPORTUNITY STARTS WITH A CONVERSATION

Contact Us

Experience the power of our cutting-edge technology firsthand

© 2025 TRINGAPPS, INC. ALL RIGHTS RESERVED

Services

AI/ML

Data Analytics

Cybersecurity

Sales & Commerce

UI/UX

Guidewire

Duck Creek

Services

AI/ML

Data Analytics

Cybersecurity

Sales & Commerce

UI/UX

Guidewire

Duck Creek


Product

Cloud

Product Engineering

FinTech

Digital Marketing

ADM


OTT

Cloud

Product Engineering

FinTech

Digital Marketing

ADM

Legal & Support

Terms and conditions​

Contact us

Cookie policy

Privacy policy

FAQ

Disclaimer

Company

About us

Careers

Legal & Support

Terms and conditions​

Contact us

Cookie policy

Privacy policy

FAQ

Disclaimer

Company

About us

Careers

SuccessIcon

Thank you!

Your message has been sent,
Our team will get back to you shortly.

Close