MongoDBTutorial
Getting Started With MongoDB And AWS CodeWhisperer
Summary
AWS CodeWhisperer, now part of Amazon Q Developer, is an AI code assistant trained on billions of lines of code that generates real-time suggestions from snippets to full functions. MongoDB collaborated with AWS Data Science to fine-tune CodeWhisperer’s foundational models specifically for MongoDB, improving code suggestion quality for developers. This tutorial focuses on setting up CodeWhisperer in VS Code via the AWS Toolkit extension, though it also supports other IDEs like AWS Cloud9 and JupyterLab. Users can start without an AWS account, and the service is currently free for individual users. The guide covers installation, authorization with a Builder ID, navigating suggestions with TAB and arrow keys, and best practices like writing descriptive comments and using import statements.
Approach / What changed
Install the AWS Toolkit extension in VS Code, authorize CodeWhisperer with a Builder ID, then use inline suggestions with TAB to accept, arrow keys to navigate, and Option-C/ALT-C to request suggestions manually. Follow best practices like writing descriptive comments and using import statements.
Takeaways
CodeWhisperer is integrated into the AWS Toolkit extension for VS Code, not a separate extension.
Use TAB to accept suggestions, arrow keys to navigate between multiple options, and Option-C/ALT-C to request suggestions manually.
For best results, provide context with descriptive comments, import statements, and descriptive variable names.
FAQ
How do I install CodeWhisperer in VS Code?
CodeWhisperer is part of the AWS Toolkit extension, not a standalone extension. Search for AWS CodeWhisperer in the VS Code extensions store and install the AWS Toolkit.
How do I accept or navigate code suggestions?
Use TAB to accept a suggestion, left and right arrow keys to navigate between multiple suggestions, and ESC or keep typing to dismiss them.
How do I manually request suggestions?
You can request suggestions manually with Option-C on Mac or ALT-C on Windows.
Source and freshness
- Source
- mongodb.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.