How do repository-level Copilot instructions help?
Repository instructions communicate project-specific coding standards, test commands, architecture, and constraints. Keep them concise, actionable, an...
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 1753–1764 of 3610 questions
Repository instructions communicate project-specific coding standards, test commands, architecture, and constraints. Keep them concise, actionable, an...
Reusable prompt files or prompt assets, where supported, capture repeatable tasks such as test generation, review, or documentation. They improve cons...
Instructions usually describe persistent conventions that should influence many tasks, while a reusable prompt describes a particular task to run when...
Attach only the files, symbols, logs, or documentation relevant to the question, using the context controls available in the editor. More context is n...
Ask the assistant to identify affected files and dependencies first. Make changes in coherent slices, inspect the full diff, and run tests at componen...
Terminal-enabled workflows can run commands that modify files, install packages, access networks, or affect data. Inspect commands and target paths, l...
Treat approval prompts as a security boundary, not a nuisance. Check command intent, arguments, paths, network effects, and credentials before approvi...
Ask for likely entry points and relevant symbols, then narrow the search to modules and callers. Verify paths and references because repository indexi...
Provide the sanitized stack trace, reproduction steps, expected and actual behavior, and recent changes. Ask it to identify plausible root causes and ...
Ask it to explain the failure and inspect the test and production code before changing either. Determine whether the failure reveals a regression, a f...
It can draft integration tests that exercise interactions among services, databases, or HTTP endpoints. Specify test fixtures, isolation, cleanup, and...
Mocks should model relevant collaborator behavior without making tests brittle or hiding integration defects. Use the project's existing framework, ve...