-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Idea: Replace usages with const declaration #45
Comments
Nice idea! For my understanding, how would this be different from inline variable? |
It is the opposite direction: I want to replace all duplicate expressions with the const at the cursor. |
Ah I see, this would be useful! In the meantime, you can achieve the same by combining the following refactorings:
|
Just realized that one variant of the refactoring already exists, you should be able to go over |
Then I can also just use copy&paste. |
Replace usages with const declaration, when the cursor is at the const declaration.
The text was updated successfully, but these errors were encountered: