Refactor Idea: Replace usages with const declaration
Replace usages with const declaration, when the cursor is at the const declaration.

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:
- Extract the right hand side of the const into a new variable (here:
top + height - checkBoxHeight - margin) - Inline the original const (here:
bottomBoundary) - Rename the new variable to the name of the original const (here: to
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 - marginand use "Replace with existing variable": https://p42.ai/documentation/code-assist/replace-expression-with-existing-variable
Then I can also just use copy&paste.