Eclipse ctrl+right 什么都不做
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18341928/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse ctrl+right does nothing
提问by Arzaquel
I'm editing a Java source in Eclipse (Version: Kepler Release). I'm used no navigate text on other editors using Ctrl+Rightto move to the next word and Ctrl+Shift+Rightto select the next word. But on eclipse nothing happens, the cursor stays in the same place.
我正在 Eclipse 中编辑 Java 源代码(版本:Kepler Release)。我已经习惯使用其他编辑器没有导航文字Ctrl+Right移动到下一个单词和Ctrl+ Shift+Right选择下一个字。但是在 eclipse 上什么也没有发生,光标停留在同一个地方。
On Window->Preferences->General->keysthe binding seems to be correct, it says: Command: Next Word; Binding: Ctrl+Right; When: Editing Text; Category: Text Editing.
在Window->Preferences->General->keys绑定似乎是正确的,它说:命令:下一个字;绑定:Ctrl+Right;时间:编辑文本;类别:文本编辑。
But it's not working.
但它不起作用。
回答by Ruslan López
Eclipse's welcome screen causes this kind of bug in the editor specifically (https://bugs.eclipse.org/bugs/show_bug.cgi?id=426557). Sometimes you can find that when you restart can't move with control+arrow in the editor but you can in other views like console window.
Eclipse 的欢迎屏幕会导致编辑器中出现此类错误(https://bugs.eclipse.org/bugs/show_bug.cgi?id=426557)。有时您会发现重新启动时无法在编辑器中使用 control+arrow 移动,但您可以在控制台窗口等其他视图中移动。
You can disable welcome screen ( in most eclipse based IDEs it's a checkbox in the welcome screen ) and then restart eclipse just to be sure it won't happend again. Everything will work again.
您可以禁用欢迎屏幕(在大多数基于 eclipse 的 IDE 中,它是欢迎屏幕中的一个复选框),然后重新启动 eclipse 以确保它不会再次发生。一切都会重新开始。
回答by Ryan McNames
I had an issue just like this with Eclipse Neon. I was baffled by answers I was finding about the welcome screen, but I disabled it, and apparently that was causing the issue, because Ctrl+Shift+Right/Leftworked, after disabling it. In Neon, the welcome screen has an "Always show Welcome at startup" box you can uncheck, in the lower right corner of the welcome screen when it appears. After unchecking it, selecting words worked, again. Somehow.
我在使用 Eclipse Neon 时遇到了这样的问题。我对我找到的有关欢迎屏幕的答案感到困惑,但我禁用了它,显然这是导致问题的原因,因为Ctrl+ Shift+ Right/Left在禁用它后起作用了。在 Neon 中,欢迎屏幕有一个“在启动时始终显示欢迎”框,您可以取消选中,欢迎屏幕出现时位于欢迎屏幕的右下角。取消选中后,再次选择单词。不知何故。
回答by Levent Divilioglu
I've got the same problem with Eclipse-Oxygen and disabling the welcome screen fixed the issue. I gave this answer just to confirm the solutions explained above also work for the following eclipse version;
我在 Eclipse-Oxygen 上遇到了同样的问题,禁用欢迎屏幕解决了这个问题。我给出这个答案只是为了确认上面解释的解决方案也适用于以下 Eclipse 版本;
1: Eclipse-Oxygen Version: Oxygen.1a Release (4.7.1a) (released on October 2017)
1:Eclipse-Oxygen版本:Oxygen.1a Release (4.7.1a)(2017年10月发布)
2: Version: Oxygen.3a Release (4.7.3a) Build id: 20180405-1200
2:版本:Oxygen.3a 发布 (4.7.3a) 版本号:20180405-1200
回答by Ceky
This issue is caused by the welcome screen. Uncheck the "Always show..." checkbox on you welcome screen.
此问题是由欢迎屏幕引起的。取消选中欢迎屏幕上的“始终显示...”复选框。
If welcome screen of your eclipse distribution does not have the "Always show..." checkbox, then another option to disable welcome screen is to create file in your workspace:
如果您的 Eclipse 发行版的欢迎屏幕没有“始终显示...”复选框,则禁用欢迎屏幕的另一个选项是在您的工作区中创建文件:
.metadata\.plugins\org.eclipse.ui.intro\introstate
and insert following content:
并插入以下内容:
<?xml version="1.0" encoding="UTF-8"?>
<state reopen="false"/>
回答by mad_rad_man
To be precise you don't need to restart Eclipse, but close "affected" document only. It works for me - Oxygen.2 Release (4.7.2)
准确地说,您不需要重新启动 Eclipse,而只需关闭“受影响”的文档。它对我有用 - Oxygen.2 Release (4.7.2)
回答by Michele d'Amico
On ubuntu 16.4 Welcome screen is blank and there is no way to disable it. Installing libwebkitgtk-3.0-0
as suggested on eclipse site work just partially and no check box are showed.
在 ubuntu 16.4 欢迎屏幕上是空白的,无法禁用它。libwebkitgtk-3.0-0
按照 eclipse 站点上的建议进行安装只是部分工作,并且没有显示复选框。
Last resource: find where are your plugin directory and remove
最后一个资源:找到你的插件目录在哪里并删除
org.eclipse.ui.intro.universal_3.3.0.v20160519-1604.jar
In my installation was at
在我的安装中
~/.p2/pool/plugins/org.eclipse.ui.intro.universal_3.3.0.v20160519-1604.jar
Just a note: in the last 4/5 years Eclipse's bugs was raising very fast :( ....
请注意:在过去的 4/5 年中,Eclipse 的错误增加得非常快:( ....
回答by jalcalav
On menu Window->Preferences->General->keys click on "Restore Defaults" button and everything works again.
在菜单 Window->Preferences->General->keys 点击“Restore Defaults”按钮,一切重新开始。