roslyn:rename_symbol
Safely rename C# symbols across your entire solution using Roslyn's semantic analysis to update all references. Preview changes before applying them to ensure accuracy.
Instructions
Safely rename a symbol (type, method, property, etc.) across the entire solution. Uses Roslyn's semantic analysis to ensure all references are updated. SUPPORTS PREVIEW MODE - always preview first! IMPORTANT: Uses ZERO-BASED coordinates. Default shows first 20 files with summary verbosity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to source file containing the symbol | |
| line | Yes | Zero-based line number (editor line - 1) | |
| column | Yes | Zero-based column number (editor column - 1) | |
| newName | Yes | New name for the symbol | |
| preview | No | Preview changes without applying (default: true). ALWAYS preview first! | |
| maxFiles | No | Max files to show in preview (default: 20, prevents large outputs) | |
| verbosity | No | Output detail level: 'summary' (default, file paths + counts only ~200 tokens/file), 'compact' (add locations ~500 tokens/file), 'full' (include old/new text ~3000+ tokens/file) |