refactorExtractFunction
Extract selected lines of code into a new named function to improve code readability and reusability.
Instructions
Extract lines into a named function. Uses VS Code Extract Function when available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File path (relative to workspace) | |
| startLine | Yes | Start line (1-indexed) | |
| endLine | Yes | End line (1-indexed) | |
| functionName | Yes | Name for the extracted function |