Best Practices for Prompt Engineering with Amazon CodeWhisperer
DevOps & Developer Productivity Blog
This article provides best practices for using Amazon CodeWhisperer, an AI-powered coding assistant, to write more efficient and effective code through proper prompt engineering.
Specifically, the article covers:
- Keeping prompts specific and concise
- Adding helpful context to prompts
- Using multiple comments to break down complex tasks
- How CodeWhisperer leverages surrounding code context
- Writing unit tests across files using CodeWhisperer
- Chain of thought prompting for complex tasks
- Conclusion on getting the most out of CodeWhisperer
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.