Software Development with GitHub Copilot
Thalia Barrera
AI Engineering Curriculum Manager, DataCamp


$$
#codebase: Performs semantic code search across an entire project
Example prompt:
How is user authentication handled? #codebase
Result:

Index types:


$$
#changes: References most recent source control changes
Example prompt:
Will any of these changes break the login flow? #changes
Use when:
$$
#selection: References highlighted blocks of code
Example prompt:
Can you refactor this? #selection
Use when:
$$
#fetch: Pulls the contents of a web page
Example prompt:
Summarize this documentation for me #fetch example.com/docs
Result:
$$
#files: Attaches specific files to a prompt
Example prompt:
Can you check this file for error handling issues? #files:utils/data_loader.py
Result:
$$
| Variable/tool | Description | 
|---|---|
| #search | Enable searching for files in the current workspace. | 
| #testFailure | Get unit test failure information. Useful when running and diagnosing tests. | 
| #problems | Add workspace issues and problems from the Problems panel as context. Useful while fixing code or debugging. | 
| #terminalLastCommand | Get the last run terminal command and its output. | 
| #githubRepo | Perform a code search in a GitHub repo. | 
Single, complex prompt:
Add PostgreSQL integration with authentication, persistence, sessions, error handling, and connection pooling
Progressive complexity flow:
#codebase


Software Development with GitHub Copilot