GitHub Copilot: Deep Dive — Code Suggestions & Code Referencing
Welcome to today’s newsletter issue on GitHub Copilot! In this edition, we’ll explore how Copilot suggests code and how it tracks origins for suggestions that match public code.
What Are Code Suggestions?
Code suggestions are the real-time, AI-powered completions that Copilot offers as you type inside your IDE — such as VS Code, JetBrains, Visual Studio, Xcode, or even Vim/Neovim. Copilot analyzes your current code context and predicts what you’re likely to write next. It can:
Example:
These inline suggestions help reduce boilerplate work and speed up development flow. Ghost text appears as you type — accept with a key (like Tab) or explore alternatives with your keyboard shortcuts.
What Is Code Referencing?
GitHub Copilot also includes a code referencing feature that gives visibility into where a suggested code snippet may originate from publicly available sources:
Recommended by LinkedIn
Example:
This feature is especially valuable for developers, teams, and organizations concerned with software licensing and compliance.
Code Referencing for Copilot Chat:
If Copilot chat responses contain the code from the public GitHub repository, the references will be provided at the end of response.
Limitations:
Stay tuned for the next articles.