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 Toolkitin the extension panel on the left and clickinstallto install it.
2. Disable Telemetry (optional)
Click the gear icon under
AWS Toolkitextension 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
AWSat 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(clickOpenif 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.
• ClickAWSat the bottom left again and selectAWS Builder ID. now there should be checkmarks next to bothAWSandCodeWhispererindicating 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+Con Mac),CodeWhisperershould show you suggestions about writing the function. you can accept it by hittingTab.
5. Enable Auto-Suggestions
• You should now have an
AWSicon on the left panel underExtensions. click on it.
• InDeveloper Toolssection, click the arrow next toCodeWhispererto open it.
• Click onResume Auto-Suggestions
🎉 Congratulations! Now you have a working AI assistant programmer by your side!
              
    
Top comments (0)