Eclipse 3.5 Copy & Paste Problem

好久不见. 提交于 2019-12-03 01:02:10

For my problem, I had to go to Window > Preferences > Java > Editor > Typing, and uncheck "Update imports"

This must be related to the key mapping, since those shortcuts are defined according to context.
(Column "When", in Preferences / General / Keys)

Check if those shortcuts do not work for any editor (do they work for Java editor?)

If they work for some editor, not for other, then some plugin settings must have re-affected them to another command.

Kevin

This is caused by various X clipboard managers doing weird things with the clipboard. (bug report).

In XFCE the clipman applet was rolled in XFCE 4.8, and will be the source of these problems.

To fix this in XFCE - kill xfce4-settings-helper. You will need to use Settings Manager -> Session and Startup -> Session to kill it, as otherwise it may restart automatically.

To prevent this starting next time, you will need to remove it from your startup/login programs in Settings Manager > Session and Startup > Application Autostart.

Problem was solved with newer Eclipse releases. I think >= 3.6. Depending on your distribution there may be a (back)port of this (not on my Xubuntu 11.04) within the repositories.

So a tarball installation of Eclipse 4.0 works perfectly for me. Cut&Paste works and I am lucky that my plugins are compatible to 4.0.

Unfortunately Sublime Text has the same problems.

I read somewhere that in KDE maybe Klipper / "Klipper on the panel" conflicts with eclipse copy action. It's a tool for clipboard history. Try to remove that! It may solve your problem :-/

For me the xfce4-settings-helper killing worked.

Workaround:

You can cut&paste from the compare view. So simply compare the un-copyable file (e.g., local history) with a different version and Control-C what you need there.

user3204598

In the *.java editor page, right click and select open in text editor. Past your snippet there. Your Snippet will show in the *.java page'

I use Eclipse Kepler for PHP development. It's dumb I know.

None of the solutions suggested here has solved this source of frustration. I can confirm the copy function works whether shortcut keys are bound or not. As I can copy from eclipse and paste into any other application. Except eclipse.

My solution. Accidental discovery: Eclipse Kepler will allow you to paste outside the php open and close tags and allow you to click and drag the highlighted block of content into into position.

Acceptable solution for small bits of code. Horribly crippling for larger development environments.

For Xming, this resolved the problem for me. In XLaunch uncheck Clipboard (clipboard manager) in the "Specify parameter settings" GUI form.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!