What is an effective prompt for a bug fix in Claude Code?
Give the symptom, reproduction, expected behavior, constraints, and request a regression test plus evidence from test output.
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 301–312 of 3610 questions
Give the symptom, reproduction, expected behavior, constraints, and request a regression test plus evidence from test output.
GitHub Copilot is an AI coding assistant integrated into supported editors and GitHub workflows, with capabilities that vary by plan, IDE, and product release.
Inline suggestions offer code completions in the editor based on nearby code and available context.
Copilot Chat provides a conversational interface for questions about code, explanations, debugging, and code generation in supported environments.
Supported editing workflows can propose or apply coordinated changes across multiple files, which is useful for feature work but requires broader diff review.
In supported environments, agentic workflows can plan changes, use tools, edit files, and run commands with varying levels of autonomy.
Provide the target behavior, test framework, fixtures, edge cases, and constraints; ask it to follow nearby tests rather than inventing conventions.
Select a focused block and ask for its purpose, inputs, side effects, dependencies, and potential failure modes.
It can draft queries, explain joins, propose indexes, and help interpret plans when schema and workload context are provided.
Give explicit security requirements, request threat and edge-case analysis, and independently run tests and security tools.
Custom instructions provide project conventions and guidance that supported Copilot features can use when generating or reviewing code.
Ask for actionable findings tied to changed lines, especially correctness, security, regressions, and missing tests; verify each finding.