-
Book Overview & Buying
-
Table Of Contents
Supercharged Coding with GenAI
By :
When working with GitHub Copilot’s three interaction modes, code completion, chat, and code analysis, many best practices are already built in. Copilot structures the prompt automatically, providing surrounding context for these modes, each with a clearly defined single task, whether it is completing code, engaging in a chat, or analyzing code. The prompts are also designed to be specific and short.
However, we can use the five S’s more precisely and achieve even better results. In this section, we will use the Singleton design pattern as an example to explore how Copilot supports code completion, code analysis, and chat.
With an understanding of this pattern and its applications, let us examine how the five S’s are implemented and can be extended within Copilot’s three interaction modes.
Copilot automatically structures prompts for its three interaction modes while...