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
Jan 8
2024
2024
Looking beyond code coverage with Amazon CodeWhisperer
Aug 30
2024
2024
Implementing advanced prompt engineering with Amazon Bedrock
Feb 14
2024
2024
Build generative AI chatbots using prompt engineering with Amazon Redshift and Amazon Bedrock
Jan 17
2024
2024
Accelerate .NET and SQL development with Amazon CodeWhisperer as your AI coding companion
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.