Community
Participate
Working Groups
Sorry if I got component wrong. It's a bug in Eclipse Java content assist. I was using an older version of Eclipse, and I was able to configure it to not have the undesired behavior. I downloaded Eclipse 4.4.0, and I do not see how to disable the undesired behavior. The problem appears to be in Java "content assist". I like Java content assist. I want the content assist pop-up to pop up automatically after typing "." and with a small delay. Currently that behavior is great, and I am satisfied. Let's talk specifics. Consider this Java code: public class Foo { public static void bar(int a, int b) {} public static void bar(int a, String b) {} public static void test() { Foo //cursor here! } } Sequence of events: I have the above text. The cursor is just after "Foo" and before " //cursor here!". I type ".". Content assist pops up. I select one of the bar options. I continue typing "1, 2);". I expect to get "Foo.bar(1, 2);". Instead, I get "Foo.bar(1, 2);;". Immediately after I type ",", content assist inserts a space and moves the cursor after that space. Immediately after I type ")", content assist inserts a semicolon and moves the cursor after that semicolon. I want an option for content assist to be a visual aid. I want to be able to type over the content assist display. I do not want content assist to mess with my typing. I want content assist to not insert these spaces and semicolons, nor move my cursor. I want to be able to type and get exactly what I type without content assist messing with me and trying to be "helpful". This "helpful" insertion behavior is driving me nuts. Of course, I'm not saying remove this automatic insertion feature if other people find it useful. I'm just asking for a way to disable it. Note: Window -> preferences -> java -> editor -> typing -> automatically close -> (parenthesis), [square] and <angle> brackets -> unchecked Window -> preferences -> java -> editor -> typing -> automatically close -> {bracers} -> unchecked Window -> preferences -> java -> editor -> typing -> automatically insert at correct position -> semicolons ... unchecked Window -> preferences -> java -> editor -> typing -> automatically insert at correct position -> braces ... unchecked I think this has been a change in behavior at 4.4.0 or somewhere just before. I am sorry that I do not know what earlier version I was using offhand.
(In reply to Joshua Maurice from comment #0) You can disable the auto-insertion By disabling Window > Preferences > Java > Editor > Content Assist > [ ] Fill method arguments The duplicate semicolon has been introduced by a 4.3 feature (see bug 198508). I'm using this bug here to track that. We should just skip the semicolon (put caret behind it) when it's already there.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
This bug of adding an unwanted semicolon is still active as of 9/15/2020. Please add a feature to turn off just this part of content assist, It is driving me crazy and I am starting to type "I hate eclipse" in every output stream before I put in what I actually needed.