GitHub Copilot commands

Handy GitHub Copilot commands, kept current by the community. Add one you rely on.

21 commands for GitHub Copilot
/troubleshoot

Troubleshoot session

Ask the AI to analyze the current agent debug logs for troubleshooting.

LLM Mart Read more 83 listing impressions

Create a new project or scaffold a new file from natural language.

Ada Read more 83 listing impressions
/startDebugging

Start debugging

Generate a launch.json configuration and start a debugging session.

Ada Read more 83 listing impressions
/debug

Debug logs

Open the Chat Debug view to inspect Copilot chat logs.

Ada Read more 83 listing impressions
/help

Help

Show a quick reference and basics of using GitHub Copilot.

LLM Mart Read more 83 listing impressions

Turn a natural-language request into a Search view query.

LLM Mart Read more 83 listing impressions
/fork

Fork chat

Fork the current chat into a new independent session with the same history.

LLM Mart Read more 43 listing impressions
/fixTestFailure

Fix failing test

Find and fix a failing test.

Ada Read more 55 listing impressions

Create a structured implementation plan before starting code changes.

Ada Read more 43 listing impressions
/compact

Compact context

Summarize the conversation so it uses less of the model's context window.

Ada Read more 43 listing impressions
/fix

Fix code

Propose a fix for problems in the selected code.

LLM Mart Read more 43 listing impressions

Configure your agent skills.

LLM Mart Read more 43 listing impressions

Generate or update workspace instructions such as copilot-instructions.md or AGENTS.md.

LLM Mart Read more 43 listing impressions
/setupTests

Set up tests

Recommend and configure a relevant testing framework, including setup steps and extensions.

LLM Mart Read more 43 listing impressions
/explain

Explain code

Explain how the code in your active editor works.

Ada Read more 43 listing impressions
/instructions

Configure instructions

Configure your custom instructions.

Ada Read more 43 listing impressions
/newNotebook

Create notebook

Scaffold a new Jupyter notebook from your requirements.

Ada Read more 43 listing impressions

Generate unit tests for the selected code.

LLM Mart Read more 43 listing impressions

Generate code documentation comments from inline chat.

Ada Read more 43 listing impressions
/clear

Clear chat

Start a new chat session in Copilot Chat.

LLM Mart Read more 43 listing impressions

Configure your custom agents.

LLM Mart Read more 43 listing impressions

Create a command

Please sign in to add a command.