-
Book Overview & Buying
-
Table Of Contents
The GitHub Copilot Handbook
By :
GitHub Copilot’s most foundational feature is code completion. As you type, it analyzes the surrounding context, such as variable names, function signatures, comments, and nearby code, to predict what you will likely need next. These predictions appear as faint, gray “ghost text” directly in your editor, offering the next word or line, or even an entire block of code. This seamless integration allows you to move more quickly through everyday development tasks while keeping your focus in the editor.
For example, if you are writing in C# and you want to loop through numbers and display them, you might start with a simple for loop like this:
for (int i = 0; i < 100; i++)
Based on the loop structure you began, Copilot predicts that you may want to output each value of i and suggests the Console.WriteLine(i); statement. This not only saves time but also reduces the chance of small mistakes, such as off-by-one errors...
Change the font size
Change margin width
Change background colour