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 clickinstall
to install it.
2. Disable Telemetry (optional)
Click the gear icon under
AWS Toolkit
extension and go to theExtension Settings
. scroll all the way down and uncheck theEnable 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.
• SelectUse a personal email to sign up and sign in with AWS Builder ID
(just hit enter)
• ClickCopy 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 theAllow AWS Toolkit for VSCode to access your data?
prompt, clickAllow
. you can close the browser now and go back to VS Code.
• ClickAWS
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
• PressAlt+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.
• InDeveloper Tools
section, click the arrow next toCodeWhisperer
to open it.
• Click onResume Auto-Suggestions
🎉 Congratulations! Now you have a working AI assistant programmer by your side!
Top comments (0)