Note that there are some explanatory texts on larger screens.

plurals
  1. POStop spacebar keypress from triggering autocomplete in Eclipse
    primarykey
    data
    text
    <p>In Eclipse Oxygen, I've enabled intellisense-style suggestions for Java by going to</p> <pre><code>Window -&gt; Preferences -&gt; Java/Editor/Content Assist </code></pre> <p>and setting the following</p> <pre><code>Auto activation delay (ms) -&gt; 0 Auto activation triggers for Java -&gt; .(abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ </code></pre> <p><em>source = <a href="https://stackoverflow.com/questions/2943131/eclipse-intellisense">Eclipse Intellisense?</a></em></p> <p>This works brilliantly, apart from one annoying problem. When I hit <kbd>spacebar</kbd>, the token being typed is autocompleted with whatever is at the top of the suggestions list. Fair enough, except that sometimes I'll type a class/variable name with an exact legal match, but this <em>won't</em> appear as the top suggestion. So when I naturally hit <kbd>spacebar</kbd> Eclipse inserts something completely wrong.</p> <blockquote> <p><strong>E.G.</strong> after typing <code>Cookie</code> I'll hit <kbd>spacebar</kbd> and get <code>CookieMonster</code>.</p> </blockquote> <p>This seems like a bug, and happens often enough to be annoying, but even despite this <strong>I don't want <kbd>spacebar</kbd> to trigger autocomplete in general</strong>. I may want to type a variable name which hasn't been declared yet, or something similar. I want to use autocomplete as a helper tool, but my natural typing should <em>always</em> take priority over it.</p> <p>I'd like to stop <kbd>spacebar</kbd> triggering autocomplete, and either fall back to using <kbd>enter</kbd>, or better still trigger autocomplete with a <kbd>custom</kbd> key not used in ordinary typing. <strong>Is any of this possible?</strong></p> <p>I've played around with all the settings in <em>Content Assist</em> to no avail. Googling the question just returns a bunch of results about disabling the autocomplete feature.</p> <p><strong>UPDATE</strong> </p> <p>This issue is present in the last 6 versions of Eclipse - <em>Oxygen</em> [4.7] <em>Neon</em> [4.6] <em>Mars</em> [4.5] <em>Luna</em> [4.4] <em>Kepler</em> [4.3] and <em>Juno</em> [4.2]</p> <p><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=348857" rel="nofollow noreferrer">The thread on the issue tracker</a> discussed in the accepted answer and various comments seems to suggest that this issue has been acknowledged. </p> <p>If any Eclipse devs happen to be reading, all I can say is, please consider the benefits of fixing this. </p> <p>Sure, the plugin in the accepted answer, and other plugins linked to in the bug thread, fix it. But how many other people facing this issue either know about it or will bother to find and install it? </p> <p>Autocomplete is a feature you want to work intuitively and flawlessly out of the box in any modern IDE. This is the case in IntelliJ IDEA and so it's currently a <em>very</em> convincing reason to switch...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload