复制/粘贴代码时 Eclipse 挂起

发布于 2024-08-02 08:47:34 字数 311 浏览 7 评论 0原文

我有一个大问题。当我使用 Ctrl+C / Ctrl+V 键进行任何复制/粘贴时,Eclipse 挂起。

是Eclipse验证码系统的原因吗?

我的 Eclipse 设置是否混乱?

这是我的配置:

  • Eclipse 3.4.2
  • Plugin RSE
  • Windows XP pro Service Pack 2
  • Java VM version = 1.5.0_11-b03

I have a big problem. Eclipse is hanging up when I do any copy/paste with Ctrl+C / Ctrl+V keys.

Is it due to the Eclipse validation code system?

Do I mess something in my Eclipse setting?

Here is my conf :

  • Eclipse 3.4.2
  • Plugin RSE
  • Windows XP pro Service Pack 2
  • Java VM version = 1.5.0_11-b03

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(10

请叫√我孤独 2024-08-09 08:47:34

禁用超链接为我解决了这个问题。如果您仍想使用超链接,也可以将默认修饰键更改为CTRL以外的键。

转到窗口 -> 首选项 -> 一般 -> 编辑 -> 文本编辑器 -> 超链接,然后取消选中启用按需超链接样式导航或更改默认修饰键

Disabling Hyperlinking fixed this for me. You could also just change the Default modifier key to something other than CTRL if you still want to use hyperlinking.

Go to Window -> Preferences -> General -> Editors -> Text Editors -> Hyperlinking and either uncheck Enable on demand hyperlink style navigation or change Default modifier key.

半枫 2024-08-09 08:47:34

我遇到了同样的问题,并且能够通过以下方式解决:
首选项-> JavaScript ->编辑->打字 -> “粘贴时”标题
...然后关闭“更新导入”。

这一改变本身就完全消除了它,而我之前几乎每次复制或粘贴都会花费 2 秒或更长时间。

I had the same issue, and was able to solve it by going to:
Preferences -> Javascript -> Editor -> Typing -> "When pasting" heading
... then turning "Update imports" off.

That one change on its own completely eliminated it, when I was previously getting hangs of 2 seconds or more on almost every copy or paste.

和影子一齐双人舞 2024-08-09 08:47:34

我通过以下步骤解决了这个问题:

  1. 确定哪个“编辑器”导致了问题。我发现,在我的例子中,java脚本编辑器是导致它的原因,但是当在简单的文本编辑器中复制/粘贴时,(没有高光,没有颜色,没有任何东西)没有这样的问题。

    注意:Eclipse 根据文件扩展名在不同的“编辑器窗口/插件”中加载文件,这是在常规 > 中配置的。编辑>文件关联

  2. 由于我的情况是由 JavaScript 编辑器引起的,因此转到 首选项 > Java脚本>编辑>键入,并禁用所有“自动”框。这成功了。

I solved this issue with these steps:

  1. Identify which "editor" is causing the problem. I detected that, in my case, the java script editor was the one causing it, but when copy/pasting in a simple text editor, (no high light, no color , no nothing) there was no such problem.

    Note:Eclipse loads the file in different "editor windows/ plugins" depending on the file extension, this is configured in General > Editors > File Associations

  2. As my case was caused by the JavaScript editor, went to Preferences > Java Script > Editor > Typing, and disabled all the "Automatically" boxes. This made the trick.

醉梦枕江山 2024-08-09 08:47:34

我解决了取消选中所有绑定到 CTRL + C 的问题,除了 Window -> 中的 Copy 。首选项->一般->按键

I solved unchecking all bound to CTRL + C except Copy in Window -> Preferences -> General -> Keys

好倦 2024-08-09 08:47:34

解决方案!!至少对我来说。

如果 CTRL + C 适用于某些编辑器,而不适用于其他编辑器,则某些插件设置必须重新影响它们到另一个命令。

所以你必须去:

 Window->Preferences->General->Startup and Shutdown

并尝试一一禁用启动时激活的插件:
就我而言,是“动态语言工具包核心 UI”

THE solution!! For me at least.

If CTRL + C works for some editor, not for other, then some plugin settings must have re-affected them to another command.

So you have to go to:

 Window->Preferences->General->Startup and Shutdown

and try to disable, one by one the plugins activated on startup:
in my case, was "Dynamic Languages Toolkit Core UI"

╭ゆ眷念 2024-08-09 08:47:34

我想我已经找到了解决方案的开始 此处

使用 -clean 选项启动 Eclipse 似乎更好,但这还不够。
这是因为我的“工作区构建挂在某些闪存文件上”

I think I have found a beginning of a solution here.

Starting Eclipse with -clean option seems to be better but this not enough.
this is because my "workspace building is hanging up on some flash file"

五里雾 2024-08-09 08:47:34

我在编辑java代码时遇到了这个问题。每次我输入 CTRL + C 时,编辑器都会冻结一小段时间。

就我而言,我只关闭了文本编辑器中可用的Go to statements。请参阅窗口 ->首选项->一般->编辑->文本编辑器 ->超链接

I faced the problem when editing java code. Every time I typed CTRL + C the editor freezes for a short period of time.

In my case I only turned of the Go to declaration that is available in textual editors. SeeWindow -> Preferences -> General -> Editors -> Text Editors -> Hyperlinking.

乱世争霸 2024-08-09 08:47:34

就我而言,它似乎与远程连接到 PC 有关(直接在 PC 上工作不会冻结它,而通过 Remmina 远程工作则会冻结)。
我的修复方法是取消绑定 Ctrl+C 上的所有命令(“窗口”>“首选项”>“常规”>“按键”),包括基本的“复制”(!!!)。默认情况下,操作系统(或 Eclipse 核心功能)似乎可以正确处理剪贴板键,无需将额外的“复制”命令绑定到它。
现在不再结冰了,尽情享受吧!

In my case it seemed to be related to remote connection to the PC (working directly on the PC was not freezing it, while working remotely via Remmina it was).
My fix was to unbind ALL commands on Ctrl+C (Window > Prefs > General > Keys), including the basic Copy (!!!). The operating system (or Eclipse core functionality) seems to handle clipboard keys correctly by default, no need to bind the additional "Copy" command to it.
Now it's not freezing anymore, enjoy!

牵强ㄟ 2024-08-09 08:47:34

只是想在这里分享我的观察结果,就像海洋中的卵石一样,我尝试了上述所有选项,但它没有解决我的问题。

实际上,就我而言,罪魁祸首是 java 文件大小,因为在复制和复制时遇到这种挂起的代码行数增加了。粘贴动作。

我做了一个快速的解决方法,有一个用于开发的临时文件,一旦完成,将代码移动到相应的 java 文件,让我摆脱这个障碍。 (我是一个使用 selenium + Java 的人,所以这个解决方法对我有用)。

Just wanted to share my observations here as a pebble in the ocean, I had tried with all most all of the above options but it didn't solve my issues.

Actually, in my case the main culprit was the java file size, as lines of code increased encountering this hanging while copy & paste actions.

So quick workaround which I made to have a temp file for development and once all done, moving the code to respective java file, get me out of this hurdle. (I am a selenium + Java guy, so this workaround worked for me).

肩上的翅膀 2024-08-09 08:47:34

我遇到了同样的问题。也许以上所有建议都有效。我想指出窗外 ->偏好->键和恢复默认值按钮可能会有所帮助。

I faced the same issue. Maybe all the above suggestions worked. I would like to point out window -> preferences -> keys and restore Defaults button might help.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文