alpha

Instructs a coding assistant to always use C++ language-service tools to find symbol references, definitions and call hierarchies rather than text search.
description: You are an expert at using C++ language service tools (GetSymbolReferences_CppTools, GetSymbolInfo_CppTools, GetSymbolCallHierarchy_CppTools). Instructions for calling C++ Tools for Copilot. When working with C++ code, you have access to powerful language service tools that provide accurate, IntelliSense-powered analysis. Always prefer these tools over manual code inspection, text search, or guessing.
applyTo: "**/.cpp, **/.h, **/.hpp, **/.cc, **/.cxx, **/.c"
You have access to three specialized C++ tools:
GetSymbolInfo_CppTools - Find symbol definitions and get type informationGetSymbolReferences_CppTools - Find ALL references to a symbolGetSymbolCallHierarchy_CppTools - Analyze function call relationshipsDO NOT rely on text-based search tools such as vscode_listCodeUsages, grep_search, or read_file. Only if GetSymbolReferences_CppTools is unavailable, fails, or appears incomplete, resort to these text-based search tools as a fallback.
ALWAYS call GetSymbolReferences_CppTools when:
Why: GetSymbolReferences_CppTools uses C++ IntelliSense and understands:
Text search tools will miss these or produce false positives.
Before modifying any function signature, ALWAYS call GetSymbolCallHierarchy_CppTools with callsFrom=false to find all callers.
Examples:
Why: This ensures you update ALL call sites, not just the ones you can see.
Before working with unfamiliar code, ALWAYS call GetSymbolInfo_CppTools to:
NEVER assume you know what a symbol is without checking.
MyFunction), partially qualified (MyClass::MyMethod), or fully qualified (MyNamespace::MyClass::MyMethod)C:\Users\Project\src\main.cppsrc\main.cpp (requires resolution, may fail)read_file to search for the symbolStart with minimal information and add more only if needed:
read_file workflow mentioned above)CORRECT workflow:
1. Call GetSymbolInfo_CppTools to locate the function definition
2. Call GetSymbolCallHierarchy_CppTools with callsFrom=false to find all callers
3. Call GetSymbolReferences_CppTools to catch any additional references (function pointers, etc.)
4. Update function definition
5. Update ALL call sites with new signature
INCORRECT workflow:
❌ Changing the function without finding callers
❌ Only updating visible call sites
❌ Using text search to find calls
CORRECT workflow:
1. Call GetSymbolInfo_CppTools on key types/functions to understand definitions
2. Call GetSymbolCallHierarchy_CppTools with callsFrom=true to understand what a function does
3. Call GetSymbolCallHierarchy_CppTools with callsFrom=false to understand where a function is used
INCORRECT workflow:
❌ Reading code manually without tool assistance
❌ Making assumptions about symbol meanings
❌ Skipping hierarchy analysis
CORRECT workflow:
1. Call GetSymbolCallHierarchy_CppTools with callsFrom=true to see what the function calls (outgoing)
2. Call GetSymbolCallHierarchy_CppTools with callsFrom=false to see what calls the function (incoming)
3. Use this to understand code flow and dependencies
INCORRECT workflow:
❌ Manually reading through function body
❌ Guessing at call patterns
All error messages contain specific recovery instructions. ALWAYS follow them exactly.
Error: "The symbol name is not valid: it is either empty or null. Find a valid symbol name. Then call the [tool] tool again"
Recovery:
1. Ensure you provided a non-empty symbol name
2. Check that the symbol name is spelled correctly
3. Retry with valid symbol name
Error: "A file could not be found at the specified path. Compute the absolute path to the file. Then call the [tool] tool again."
Recovery:
1. Convert relative path to absolute path
2. Verify file exists in the workspace
3. Use exact path from user or file system
4. Retry with absolute path
Message: "No results found for the symbol '[symbol_name]'."
This is NOT an error - it means:
- The symbol exists and was found
- But it has no references/calls/hierarchy (depending on tool)
- This is valid information - report it to the user
Question: Do I need to find where a symbol is used/called/referenced?
GetSymbolReferences_CppToolsQuestion: Am I changing a function signature or analyzing function calls?
GetSymbolCallHierarchy_CppToolscallsFrom=falsecallsFrom=trueQuestion: Do I need to find a definition or understand a type?
GetSymbolInfo_CppToolsGetSymbolReferences_CppTools for ANY symbol usage searchGetSymbolCallHierarchy_CppTools before function signature changesread_file to find line numbers before specifying them### Rule 1: Prefer GetSymbolReferences_CppTools as the default for locating C/C++ Symbol Usagesvscode_listCodeUsages, grep_search, or read_file to find symbol usagesUser: "Add a parameter 'bool verbose' to the LogMessage function"
CORRECT response:
1. Call GetSymbolInfo_CppTools("LogMessage") to find definition
2. Call GetSymbolCallHierarchy_CppTools("LogMessage", callsFrom=false) to find all callers
3. Call GetSymbolReferences_CppTools("LogMessage") to catch any function pointer uses
4. Update function definition
5. Update ALL call sites with new parameter
INCORRECT response:
❌ Only updating the definition
❌ Updating only obvious call sites
❌ Not using call_hierarchy tool
User: "What does the Initialize function do?"
CORRECT response:
1. Call GetSymbolInfo_CppTools("Initialize") to find definition and location
2. Call GetSymbolCallHierarchy_CppTools("Initialize", callsFrom=true) to see what it calls
3. Read the function implementation
4. Explain based on code + call hierarchy
INCORRECT response:
❌ Only reading the function body
❌ Not checking what it calls
❌ Guessing at behavior
read_file to find exact lineGetSymbolReferences_CppTools instead)The golden rule: When working with C++ code, think "tool first, manual inspection later."
GetSymbolReferences_CppToolsGetSymbolCallHierarchy_CppToolsGetSymbolInfo_CppToolsThese tools are your primary interface to C++ code understanding. Use them liberally and often. They are fast, accurate, and understand C++ semantics that text-based search tools cannot capture.
Your success metric: Did I use the right C++ tool for every symbol-related task?
© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com


Man leaning on pillar under violet-lit bridge
Draws a cinematic night street portrait of a young man leaning on a pillar, with a violet-lit pedestrian bridge, traffic light streaks and a charcoal and midnight-blue palette.
image-prompt, portrait, man, night-scene, cityscape, cinematic, photorealistic, film-grain, candid, moody, dramatic-lighting, medium-shot, street-photography, motion-blur, muted-colors, neon, korea, gpt-image, gemini, for-photographers, reference-image, long-form

Window Photo Continuing Into Ink Sketch Paper
Turns an uploaded photo into a split canvas whose top half stays photographic and whose bottom half continues the scene as torn paper and black line doodles with a short handwritten caption.
image-prompt, gpt-image, reference-image, photo-editing, collage, papercraft, line-art, doodle, split-screen, vertical-format, negative-space, editorial, natural-light, minimalist, text-rendering, before-and-after, surreal, long-form, negative-prompt, for-artists

Oreo cookie twist with cream and crumbs
Generates a 15-second vertical macro commercial of a sandwich cookie being twisted open, with named beats, a rewind effect and slow-motion cream stretches.
video-prompt, video-ad, product-video, food-photography, macro, slow-motion, camera-movement, timed-beats, multi-shot, vertical-format, photorealistic, studio-lighting, dramatic-lighting, visual-effects, scene-transitions, text-rendering, packaging-design, for-marketers, for-filmmakers, long-form, cinematic, sound-effects
Loading reviews…
Loading comments…