Open hediet opened 1 year ago
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:
top + height - checkBoxHeight - margin
)bottomBoundary
)bottomBoundary
)Just realized that one variant of the refactoring already exists, you should be able to go over top + height - checkboxHeight - margin
and use "Replace with existing variable": https://p42.ai/documentation/code-assist/replace-expression-with-existing-variable
Just realized that one variant of the refactoring already exists, you should be able to go over
top + height - checkboxHeight - margin
and use "Replace with existing variable": https://p42.ai/documentation/code-assist/replace-expression-with-existing-variable
Then I can also just use copy&paste.
Replace usages with const declaration, when the cursor is at the const declaration.