如何让一个红色框出现在变量名之外,以便在我在 java netbeans 中使用它的所有地方更改它?

How do I get a red box to appear outside of a variable name, to change it in all of the places i'm using it in java netbeans?

我说的是这样的盒子:

您需要这样做:

Right click variable name -> Refactor -> Rename

一个红框会在所有使用该变量的地方勾勒出轮廓,并将其重命名为您输入的名称。

作为回答 OP 问题的快捷方式,单击变量名称并使用

CTRL + R