JannisX11 / batch-rename

VS Code extension to batch-rename files
https://marketplace.visualstudio.com/items?itemName=JannisX11.batch-rename-extension
MIT License
56 stars 16 forks source link

Idea: do the same for variables in editor #11

Closed zardoy closed 1 year ago

zardoy commented 1 year ago

HI! I personally found useful useful having a way to rename multiple symbols within editor, when you have a lot of variables declaraed in one place using some name pattern eg:

// want to rename a bunch of variables safely
const sendButtonEnabled = true;
const sendButtonColor = 'red';
const sendButtonBackgroundColor = 'green';

...

Workflow: using multiselect select all needed variables, rename them in the same way

You can look at Multi Rename Extension

JannisX11 commented 1 year ago

Cool! But why did you open an issue here if you have already made this?

zardoy commented 1 year ago

I thought it might be worth also putting that logic in your awesome extension as well (just because this extension doesn't have name ilke batch-files-renames). The first part of functionality to rename files and the second to rename symbols. Feel free to close this issue if you don't like the idea of having it here.

JannisX11 commented 1 year ago

Yeah I think it would be out of scope.

airtonix commented 1 year ago

dissapointing @JannisX11:

I'd say that Batch-Rename doesn't live up to the expectations of a user