roslyn:inline_variable
Replace a variable with its value across the codebase. Place cursor on the variable declaration or usage to remove the variable and substitute all references with the original expression.
Instructions
Inline a variable, replacing all usages with its value.
USAGE: Position cursor on a variable declaration or usage. OUTPUT: Variable removed and all usages replaced with the expression. IMPORTANT: Uses ZERO-BASED coordinates (editor line - 1).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Zero-based line number | |
| column | Yes | Zero-based column number | |
| preview | No | Preview mode (default: true) | |
| filePath | Yes | Absolute path to source file |