Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
The GitHub Copilot Handbook

You're reading from   The GitHub Copilot Handbook A practical guide to transforming the software development life cycle with GitHub Copilot

Arrow left icon
Product type Paperback
Published in Nov 2025
Publisher Packt
ISBN-13 9781806116638
Length 290 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Rob Bos Rob Bos
Author Profile Icon Rob Bos
Rob Bos
Randy Pagels Randy Pagels
Author Profile Icon Randy Pagels
Randy Pagels
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. What is GitHub Copilot?
2. GitHub Copilot Explained FREE CHAPTER 3. Getting Started with Generative AI 4. Choosing the Right GitHub Copilot Plan 5. Getting Started with GitHub Copilot
6. Mastering GitHub Copilot in Your IDE: Inline Suggestions, Chat, and Agent Mode 7. Going Beyond Code: Debugging, Terminal, and Collaboration with GitHub Copilot 8. Exploring GitHub Copilot Integrations
9. Collaborating with Copilot on GitHub.com: Issues, PRs, Reviews, and Coding Agent 10. Extending GitHub Copilot with the Model Context Protocol (MCP) 11. Getting the Most Out of GitHub Copilot
12. Navigating the GitHub Copilot Learning Curve 13. Building an Internal GitHub Copilot Community 14. Changing the Narrative: Reframing Engineering with AI 15. Unlock Your Exclusive Benefits 16. Other Books You May Enjoy
17. Index

Approaching problems the right way

To come back to the wrong ways we see people use generative AI and tools such as GitHub Copilot, we want to show you the right ways as well. Since LLMs use the context of what they know (given by the IDEs) to predict the most likely next word(s), we can use that to give enough context (and not too much) to describe what we want to achieve, but not too much on how to achieve it. We also know that the longer the suggestions are, the lower the quality will be. So, we don’t go for big results in one go.

Let’s take an example. Let’s say you don’t have any code and you want you to build a game. A bad idea would be to simply say, Build Super Mario in Vite.js, as shown in Figure 8.5:

Figure 8.5: Prompt too short with big expectations

Figure 8.5: Prompt too short with big expectations

As you can see, I prompted "Build Super Mario in Vite.js" in an empty folder. GitHub Copilot generated plenty of files that have sensible names, so the expectations were...

lock icon The rest of the chapter is locked
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
The GitHub Copilot Handbook
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon