smart_refactor
Rename symbols consistently across multiple files to maintain code clarity and accuracy. Identifies and updates all occurrences of a specified name in a given set of files.
Instructions
Intelligently refactor code by renaming symbols across multiple files
Input Schema
Name | Required | Description | Default |
---|---|---|---|
files | Yes | List of files to search and refactor | |
newName | Yes | The new symbol name | |
oldName | Yes | The symbol name to replace |
Input Schema (JSON Schema)
{
"properties": {
"files": {
"description": "List of files to search and refactor",
"type": "array"
},
"newName": {
"description": "The new symbol name",
"type": "string"
},
"oldName": {
"description": "The symbol name to replace",
"type": "string"
}
},
"required": [
"files",
"oldName",
"newName"
],
"type": "object"
}