roslyn:inline_variable
Replace variable declarations and usages with their assigned values to simplify code by eliminating unnecessary variables.
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 |
|---|---|---|---|
| filePath | Yes | Absolute path to source file | |
| line | Yes | Zero-based line number | |
| column | Yes | Zero-based column number | |
| preview | No | Preview mode (default: true) |