roslyn:encapsulate_field
Encapsulate a field into a property with getter and setter by positioning the cursor on the field declaration. Uses zero-based line and column coordinates.
Instructions
Convert a field to a property with getter/setter.
USAGE: Position cursor on a field declaration. OUTPUT: Generated property wrapping the field. 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 on the field | |
| column | Yes | Zero-based column number | |
| preview | No | Preview mode (default: true) |