roslyn:inline_variable
Replace a variable with its assigned value by positioning the cursor on its declaration or usage, removing the variable and substituting all usages.
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 |