Understanding Code Symbols
In Fire and Water, CodeBot can use the Elements code model to inspect symbols, types, members, and declarations. This is different from plain text search: CodeBot can ask the IDE about the structure of your code.
Ask CodeBot to Find Symbols
CodeBot can list symbols, find types, search for names, and inspect members of a type.
Typical prompts:
- "Find the class that owns this method."
- "List symbols containing
ProjectReference." - "Show me the members of this type."
- "Where is this API declared?"
Use code-model requests when the question is about program structure, declarations, or type/member relationships.
Ask CodeBot to Explain Symbol Details
CodeBot can retrieve symbol details before explaining or editing code.
Typical prompts:
- "Explain this class and its public API."
- "What overloads exist for this method?"
- "Show me details for the selected symbol."
This can be more accurate than asking CodeBot to search raw text, especially in larger solutions.
Ask CodeBot to Replace a Symbol
For certain refactor-like changes, CodeBot can replace a whole symbol after it has identified the exact target.
Typical prompts:
- "Replace this generated method with a cleaner implementation."
- "Update this property implementation."
- "Rewrite this symbol, but keep the public signature."
For small local edits, ordinary file editing is usually easier to review. Whole-symbol replacement is best when the symbol is clearly identified and CodeBot has a complete replacement.