Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 388138

Summary: [content assist] Content Assist autocomplete field/variable name commits on space key.
Product: [Eclipse Project] JDT Reporter: Kayton Summers <kayton.summers>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, paul-mail, pwebster, ra4king, timo.kinnunen
Version: 4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Kayton Summers CLA 2012-08-27 14:57:18 EDT
When coding, I have Content Assist to help me remember variable names and Object types and whatnot, but it's a bit intrusive in the sense that just pressing "space" will commit the first suggestion. I want the option to disable committing on the space key along with other keys. 

I'll demonstrate an example (for Java) below:

//This is the desired text
DecimalFormat df = new DecimalFormat("#.##");

//If I type it out, when I type df[space], it will format like this:
DecimalFormat dFormat = new DecimalFormat("#.##");

I could disable content assist and the problem will disappear but I won't be able to code efficiently and effectively. 

Thanks!
Comment 1 Kayton Summers CLA 2012-09-03 12:38:22 EDT
EDIT: I've found other posts like these except them saying the postfix content assist appending is a bug. I disagree but I'd like a way to disable the feature. Or at least make it so "space" and "." don't trigger the proposal.
Comment 2 Roi Atalla CLA 2012-10-13 22:15:34 EDT
I have looked and looked all over the internet for how to turn off this annoying "feature" off and it really does seem like you can't. I have content assist set to pop up on every character and this is the only annoying thing about it.
Comment 3 Paul Logvinov CLA 2013-07-31 23:57:42 EDT
The same issue, makes autocompletion nearly unusable.

OSX 10.8.4

Groovy/Grails Tool Suite 

Version: 3.3.0.RELEASE
Build Id: 201307091644
Comment 4 Dani Megert CLA 2013-08-02 05:29:19 EDT
> I could disable content assist and the problem will disappear but I won't be 
> able to code efficiently and effectively. 

You don't have to disable it - just don't even invoke it if not needed. Or did you maybe add additional trigger characters which always invoke content assist? In that case, using a longer auto-activation delay might help.

*** This bug has been marked as a duplicate of bug 412992 ***