Eclipse hang when copying / pasting code - eclipse

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

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.

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.

I solved this issue with these steps:
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
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.

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

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"

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"

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.

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!

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).

Related

Eclipse: control key hovering and control-enter very slow to respond

I'm in Eclipse version 2019-06. Every since I installed on this new laptop, I am facing the following problem: using the control key to hover and control-rightmouseclick to drill down is very slow, sometimes to the point of causing the screen to be disabled with the spinning-cursor icon.
I went into Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced, and unchecked everything except "Java Proposals". I've played around with checking different things in this Content Assist section, and none of it makes much difference.
Here's an interesting diagnostic: when I am inside a jar, the problem doesn't happen.
I finally eliminated this problem by upgrading Eclipse to 2021-03 - I had been previously on 2019-06.

Eclipse - compiler errors showing in the code. Looking for preference to remove it

I just installed a new Eclipse version (2020-12 with Wild Web Dev), and now Java compilation errors, in addition to being highlighted, also show up as text in the source file. That makes the lines to jump around, and is pretty annoying. I cannot figure out how to switch that feature off in Preferences.
Thank you very much for help.
It turned out to be a Code Mining setting. This particular one is in General -> Editors -> Text Editors -> 'Show code minings for problem annotations.' Changing it to 'None' removed the problem.

Javadoc Tooltip with Content Assist in Eclipse

When i started to use Eclipse's Content Assist, Eclipse used to give me Javadoc help of item i focus in a tooltip box next to content assist. However, after a while Javadoc tooltip stopped working. I tried resetting preferences to default but no luck. What should i do?
p.s: Javadoc works when i highlight an element (i.e. a method).
I mingled with various options for 4 hours...even created a new workspace. Finally what worked for me was some preference changes.
Goto Preferences > Java > Editor > Content Assist, click on Restore Defaults.
Restart Eclipse and you are good to go.
You could try checking you have the latest version (and possibly reinstalling) xulrunner. That's Mozilla's platform independent GUI library, and as far as I'm aware it's used to display the javadoc, both content assist popups and in the javadoc tab. The likely cause of your problem is bugs/communication difficulties between eclipse and xulrunner.
I was facing the same problem here, and then, armed with Gaurav Kumar tip, I managed to solve it.
The problem here was that I had put a lower auto activation delay value. When I put it back to 200 and restarted Eclipse, the javadocs came back.
I solved the problem by changing Preferences > Java > Editor > Content Assist -> Auto Activation -> Auto activation triggers for Javadoc from "##" to "#".

Ctrl-Space in Eclipse without Pressing Ctrl-Space

I've just started using Eclipse and I noticed that when I start typing a local variable name it doesn't come up with suggestions like Visual Studio does until I press Ctrl+Space. Is there any way to get it to do this automatically? I find Ctrl+Space an awkward key press.
These bugs (and a solution if you use Eclipse >3.4) may be of interest to you:
A. Allow more character triggers as #Samuel said (fixed in 3.4 onwards):
https://bugs.eclipse.org/bugs/show_bug.cgi?id=159157
Change the default in Auto activation triggers for Java to ._abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
B. Allow content assist everywhere automatically (not fixed):
https://bugs.eclipse.org/bugs/show_bug.cgi?id=101420
What works:
Change the Auto activation triggers to .abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_
You're unlikely to type anything else to get assist started.
Window -> Preferences
Java -> Editor -> Content Assist
Change auto-activation to suit your preferences
You will probably want to set the delay to 0.
Also to make Auto Complete work in XML files do the following changes in
Preferences -> XML -> XML Files -> Editor -> Content Assist
Under Auto Activation section, provide the following values
Make Auto activation delay (ms): 0
Prompt when these characters are inserted: <=:._abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
Following screenshot explains the same

disable eclipse auto completion

I love Eclipse but I HATE auto-completion with a vengeance! I swear though, no matter how hard I look in prefs or Google I can't find where I turn this off!
I'm having the problem with both CFEclipse and the PHP editor.
How do I completely disable all "smart" quotes/tags/braces auto-inserting. Not some of it.. ALL of it. No matter how many options I untick both editors keep trying to finish my code for me.. usually with irritating results. Like this one (PHP editor):
<img alt="banner" src="/images/banner.jpg"></img>
This is HTML, not XHTML - I don't want, or need, my img tags closed.
Anyway this is still happening after I've gone to Preferences | PHP | Editor | Typing and Preferences | PHP | Editor | Code Assist and unchecked every option.
I can't be the only one having this issue but I can't find any howtos or help on this.
Well I found how to stop the tags auto-closing. For some reason it's under the Web | HTML Files preferences (even for a PHP file). I realise PHP is embedded in HTML but it seems odd the way the Editor options cross over like this. You need to restart Eclipse for this change to work.
I don't know how to find the Web | HTML Files Preferences section of cfeclipse configuration. The best I could find for this utterly infuriating so-called feature is this:
Go to Window -> Preferences -> CFEclipse -> Editor Then set Insight Delay to 9999. This won't turn it off but as good as. (Thank you House of Fusion for confirming my action).
You can find the HTML content assist in:
Window > Preferences > Web > HTML Files > Editor > Content Assist
and uncheck the "Automatically Make Suggestions" checkbox in the "Auto Activation" Panel
(used Linux Version of Eclipse Juno)
Found it (it IS hard to find, I know). It's:
Window > Preferences > Web > HTML Files > Editor > Typing (a LOT of steps, I know), then you can uncheck the boxes :).
Same issue, a slightly different location : looks like this is to be unplugged for each different programming language we use.
For Java, I had to look in :
(window / preferences) Java > Editor > Content Assist, frame "Auto Activation", uncheck "Enable auto activation"
For Linux version of Eclipse Juno, find it in:
Window > Preferences > Java > Editor > Content Assist. then uncheck "Enable auto activation" from the "Auto Activation" Panel
Then Eclipse and I can work together...
Yes, code completion and it's family are VERY irritating and it's hard to find the right checkbox.
Windows->Preferences. And then look at all the choices for editors. You will find the place.
I'm using Flash Builder and encounter the same annoyance with the Actionscript editor.
I was trying to disable this for Javascript, and my environment was not set up the way the other answers were describing. I had to go to:
Window > Preferences > Aptana Studio > Editors > JavaScript > Content Assist
There I had to empty the textboxes for:
display proposals
display contextual info
insert proposal
Now it shows me suggestions, which is great, but no longer forces its favorite suggestion on me when it thinks it's appropriate. It was turning:
this.
...into:
thistory.
THISTORY? What on earth is THISTORY? I'm glad that annoyance is over.
To disable autoclosing for brackets and HTML tags you shall go:
Preferences -> PHP / Web -> Editor -> Typing
then unchek all you need :)
I tried unchecking AutoActivation in ContentAssist for the Java Editor in hopes of disabling SmartInsert. But that failed. Best I could do was to go to Windows>Preferences>Java>Editor>Typing. Then uncheck both the Indentation boxes and Adjust Indentation in When pasting. That disabled the parts of SmartInsert that annoyed me the most. Should work the same for other editors. It is a shame there seems to be no way to disable it altogether.