Prompting strategy
The prompting strategy is a bit dependent on the chosen AI tool, how it works, and how we prompt. GitHub Copilot is our chosen AI tool for this chapter, and we will focus mostly on its in-editor experience where you type prompts in open files. The approaches we will show throughout this chapter are the following:
- Inline comments: This means we will write prompts directly in open files. You can add prompts this way at the top of the file and also add additional supporting prompts where you’re trying to have your AI assistant build specific code blocks.
- Chat: We will not show this approach that much, but we do recommend using the chat just to compare and contrast or if you need to look up specific information or want advice on how to implement something.
The general recommendation throughout this book is that you use a blended approach of both using prompts directly in open files “in-editor” and typing prompts in the...