Eclipse 3.5 Copy & Paste Problem

丶灬走出姿态 提交于 2019-12-04 09:06:12

问题


I recently updated my Eclipse to the latest release 3.5 and since then I have a very annoying problem with c&p using the shortcuts.

In an editor (xml, jsp, doesnt matter which one) I try to copy something and paste it somewhere else, nothing happens. When I cut out something and put it somewhere else I sometimes get something else (like a messed up part of my previous selection) or just some whitespaces. This gets even worse when I change lines in between.

First I thought that my keyboard is probably broken but it works just fine in other programms. Then I tried using the contextmenus c&p and there it works. Yesterday I managed to get at least an errormessage when I tried to copy a file in the navigator from one project to another (the message was just "error using copy...bla". no details).

Does anyone else have this problem, or knows how to solve it?

BTW: I am running on Kubuntu 9.04, and have quite some plugins installed (but only from the Galileo Updates Site), like Birt, Mylin, WST, or Subversive.


回答1:


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




回答2:


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.




回答3:


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.




回答4:


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.




回答5:


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.




回答6:


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.




回答7:


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'




回答8:


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.




回答9:


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



来源:https://stackoverflow.com/questions/1189002/eclipse-3-5-copy-paste-problem

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