extract_function
Refactor code by extracting selected lines into a new named function to improve modularity and reusability.
Instructions
Extract selected code into a new function
Input Schema
Name | Required | Description | Default |
---|---|---|---|
endCharacter | No | End character position | |
endLine | Yes | End line of code to extract | |
file | Yes | File containing the code to extract | |
functionName | Yes | Name for the new function | |
language | No | Programming language | typescript |
startCharacter | No | Start character position | |
startLine | Yes | Start line of code to extract |