DEV Community

Cover image for Installing Amazon CodeWhisperer in VS Code
Rashid Shamloo
Rashid Shamloo

Posted on

33 1 1 1 1

Installing Amazon CodeWhisperer in VS Code

CodeWhisperer by Amazon is an AI Code Generator similar to GitHub Copilot by Microsoft but you can use it for free. follow these simple steps to get it up and running:


1. Install the AWS Toolkit extension

Search for AWS Toolkit in the extension panel on the left and click install to install it.

2. Disable Telemetry (optional)

Click the gear icon under AWS Toolkit extension and go to the Extension Settings. scroll all the way down and uncheck the Enable AWS Toolkit to send usage data to AWS. checkbox.

3. Sign up for an AWS Builder ID or Sign in if you already have one

•  Click on AWS at the bottom left of the VS Code window (to the left of CodeWhisperer) and you will be asked to choose a connection option.
•  Select Use a personal email to sign up and sign in with AWS Builder ID (just hit enter)
•  Click Copy Code and Proceed (click Open if you're asked to allow opening an external website)
•  Paste the code, click next, and sign up for an account using your email and password
•  In the Allow AWS Toolkit for VSCode to access your data? prompt, click Allow. you can close the browser now and go back to VS Code.
•  Click AWS at the bottom left again and select AWS Builder ID. now there should be checkmarks next to both AWS and CodeWhisperer indicating you've successfully connected to the service.

4. Test the functionality

•  Open a file in whatever language you're using (JavaScript, Python, etc.)
•  Write a comment like //function that adds two numbers
•  Press Alt+C (Option+C on Mac), CodeWhisperer should show you suggestions about writing the function. you can accept it by hitting Tab.

5. Enable Auto-Suggestions

•  You should now have an AWS icon on the left panel under Extensions. click on it.
•  In Developer Tools section, click the arrow next to CodeWhisperer to open it.
•  Click on Resume Auto-Suggestions


🎉 Congratulations! Now you have a working AI assistant programmer by your side!

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry 🕒

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay