What is GitHub Copilot?
GitHub Copilot is a set of tools that can help you understand or produce code, either by helping you write code in an editor, talking to your code base to gain more information, or getting help from integrated functionality inside the web interface of GitHub.
This all starts with GitHub Copilot leveraging Large Language Models (LLMs) to complete the current line(s) of code that you are working on, by adding a suggestion when you stop typing for a couple of milliseconds, or when you hit the Return key. Depending on your color scheme, a suggestion is shown in gray or dimmed text in the editor, behind your cursor. You can see this in Figure 1.1, where the cursor is on line 9. This is also called “ghost text.” This text is a continuation of the code you already typed, and GitHub Copilot finds the most logical completion of the code and suggests it for you to accept.

Figure 1.1: Example of “ghost text” inside of VS Code
...