I have a problem with Eclipse in Debian Buster.
Every time I activate autocomplete near a word, the same is highlighted in yellow and, if I confirm completion, it is replaced.
In Windows I didn't have this problem; I believe it is some Eclipse setting but I don't know how to disable it.
Thanks in advance.
In Eclipse 2020-12 (4.18) the default behavior for the Java content assist changed from Completion Inserts to Completion Overwrites, which can be configured in Window > Preferences: Java > Editor > Content Assist at the top.
See also my video showing this new default behavior of the content assist and how the old behavior can be restored.
Related
I've noticed the following on Eclipse 2019-09 R (4.13.0) for macOS, but it might have happened before: I can't see the current line columns anymore on the status bar:
for the obvious reason that the box is too small and the abbreviation is triggered. But I can't find a way to extend it, I've already tried to click and drag with no luck. This is very annoying when I need it.
Is there some option to change this?
This is Eclipse bug 551387 which is marked as fixed in Eclipse 2019-12 (4.14)
A workaround is to turn off 'Show cursor position in the status line' in the 'General > Editors > Text Editors' page of the Preferences.
I am using Adobe's ColdFusion Builder, an Eclipse-based IDE built on top of Aptana.
All of a sudden, I am getting a type of whitespace marker showing in my Eclipse Editor. I must have accidentally hit a key combination.
Here is a screen dump.
I have already tried "General > Editors > Text Editors > Show whitespace characters" and it is not this. I already have show whitespace characters turned off. If I turn it on, then the Whitespace Characters display over the top of what I am already seeing.
Can anyone tell me how this can be turned off? Most annoying.
Many Thanks
It's under Preferences -> General -> Editors -> Text Editors
Just uncheck 'Show Whitespace Characters':
Did you try Restarting Eclipse? If that didn't work, you might try this http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka11640.html which explains which file to delete to force eclipse to revert to use default settings.
I have done this several times by accidentally hitting some keystrokes.
If you go to Windows/Preferences/General/Keys you will see all the keyboard shortcuts you have.
Mine is set to Control + .
(that's a period by the way) I had to place my cursor inside the document and do it a couple of times to make it work because there is also a keyboard shortcut for Control +
On a Mac it is Cmd +.
Hope that helps.
I am a web developer and need closing tag matching for HTML. I always use Netbeans but a giving Eclipse a try for the first time. By default it seems to have closing brace matching for PHP/javascript, etc. But I don't see the closing tag matching when I clock on an opening tag. Is there some way to turn this feature on or does it not exist?
Also how does one change syntax colors in Eclipse, I don't see those options in Windows >> Preferences.
Do you mean this effect?
It should be enable by default .
To change the color syntax , go to Window --> Preferences and type color in the top left search box .Then all the setting about color will be filtered out.
You can change the color of the matching tags in the General ---> Editor ---> Text Editors ----> Annotation.
You can also try this Eclipse Color Theme plugin which has already includes many popular color themes.
P.S All the settings are based on the eclipse 3.7 Indigo Version.
Some of my Javascript lines of code are longer than the editor window view. I have recently upgraded to the Helios version of Eclipse and noticed that after editing one of these long lines (I am scrolled to the right), after a few seconds the editor window will automatically scroll back to the left to the beginning of the line. It breaks my concentration and it's so annoying!
Does anyone know how to stop this behavior? I've searched around and haven't been able to find anything other than others being annoyed by this same issue!
I am not willing to turn on word wrap and wrap my lines :).
I was having the same issue and found these open bugs for it on the Eclipse Bugs.
No sign there of having a fix for it, but you can prevent it from happening when you switch the Code Folding off and reload the file.
For java in eclipse :
Windows -> Preferences -> Java ->Editors ->Folding -> Enable Folding (uncheck)
For HTML, JSP, XML etc in eclispe :
Windows -> Preferences -> General -> Editors -> Structured Text Editors -> Enable Folding (uncheck)
If you're using Mac OSX, press OPTION + COMMAND + O to turn off "Toggle Mark Occurrences" - it looks like a highlighter in the toolbar.
I turned off Toggle Breadcrumb, and it fixed my problem.
I am using Eclipse to program Android apps and I love how the little helper box thing comes up when you start to type and suggests things to you.
However, this only happens sporadically and I was wondering if there was a way to keep it visible for longer or, even better, a key combo I could press to bring it up. If I start to type something, it either helps me by suggesting things or doesn't appear.
Try Ctrl+Space. The feature is known as "content assist," "code completion," "auto-complete." In the Visual Studio world, I think it's called "Intellisense."
If you want the suggestions to appear immediately (I prefer this) you can change the delay by going to Window → Preferences → Java → Editor → Content Assist and change the Auto activation delay to 0. In my version of Eclipse (Helios for Java EE), that field is third from the bottom.
An easier way of finding this preference screen is to use the search box in the upper-left-hand corner of the prefs (as before, Window → Preferences), and typing completion. From there you can see all of the different content assist preferences that Eclipse offers. Mine has Java, JavaScript, CSS, HTML, JSP, and XML - most of those because I'm using a fancier version of Eclipse.
By default, when writing Java code, the . (period) key triggers auto-activation of content assist. You can change this setting in the same screen as the auto-activation delay.
I think its Control+Space for Code completion. Try that
Also go easy with the code completion popup delay. Dont set it to 0, i remember a strange behaviour in Eclipse where there was no popup at all.
Ctrl+Space is the shortcut for Content Assist.
Ctrl+1 is the shortcut for Quick Fix.
Ctrl+2 is the shortcut for a menu of Quick Assists. (Ctrl+2, F is the shortcut for Quick Assist - Assign to var/field, and in place of F you can also type L or R for other options.)
To see and/or modify available shortcuts you can go to Window > Preferences > General > Keys.