I would like to rename a variable and all its references in my code base. I am using Eclipse Java EE IDE for Web Developers (Mars.2 Release (4.5.2)).
我想在我的代码库中重命名变量及其所有引用。我正在为Web开发人员使用Eclipse Java EE IDE(Mars.2发布(4.5.2))。
When I right-click, I do not see any menu item called Rename in any of the context-menus or sub-menus.
当我右键单击时,我在任何上下文菜单或子菜单中都看不到任何名为Rename的菜单项。
I looked up all the context menu items before posting this question. The first place I looked was the Refactor \ Rename context-menu item because that's where I would have found it in Visual Studio. I am a C# developer.
在发布此问题之前,我查找了所有上下文菜单项。我看到的第一个地方是Refactor \ Rename上下文菜单项,因为这是我在Visual Studio中找到它的地方。我是C#开发人员。
3 个解决方案
#1
1
When I right-click, I do not see any menu item called Rename
右键单击时,我看不到任何名为Rename的菜单项
The menu item is Refactor
, under which you have Rename
.
菜单项是Refactor,您可以在其下重命名。
#2
1
Select the variable pres Alt + Shift + R and type new name. Or Select the variable -> right click -> Refactor -> Rename and type new name
选择变量pres Alt + Shift + R并键入新名称。或选择变量 - >右键单击 - >重构 - >重命名并键入新名称
#3
1
It is in the context menu Refactor \ Rename...
.
它位于上下文菜单Refactor \ Rename ....
And the keyboard shortcut is Alt+Shift+R
.
键盘快捷键是Alt + Shift + R.
You first have to select the variable you want to rename and then use either the context menu (right click) on it, or use the shortcut.
首先必须选择要重命名的变量,然后使用上下文菜单(右键单击),或使用快捷方式。
#1
1
When I right-click, I do not see any menu item called Rename
右键单击时,我看不到任何名为Rename的菜单项
The menu item is Refactor
, under which you have Rename
.
菜单项是Refactor,您可以在其下重命名。
#2
1
Select the variable pres Alt + Shift + R and type new name. Or Select the variable -> right click -> Refactor -> Rename and type new name
选择变量pres Alt + Shift + R并键入新名称。或选择变量 - >右键单击 - >重构 - >重命名并键入新名称
#3
1
It is in the context menu Refactor \ Rename...
.
它位于上下文菜单Refactor \ Rename ....
And the keyboard shortcut is Alt+Shift+R
.
键盘快捷键是Alt + Shift + R.
You first have to select the variable you want to rename and then use either the context menu (right click) on it, or use the shortcut.
首先必须选择要重命名的变量,然后使用上下文菜单(右键单击),或使用快捷方式。