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 ofCodeWhisperer
) 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
(clickOpen
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, clickAllow
. you can close the browser now and go back to VS Code.Click
AWS
at the bottom left again and selectAWS Builder ID
. now there should be checkmarks next to bothAWS
andCodeWhisperer
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 hittingTab
.
5. Enable Auto-Suggestions
You should now have an
AWS
icon on the left panel underExtensions
. click on it.In
Developer Tools
section, click the arrow next toCodeWhisperer
to open it.Click on
Resume Auto-Suggestions
๐ Congratulations! Now you have a working AI assistant programmer by your side!