This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 249600 - Global option to disable, limit or enable code completion
Summary: Global option to disable, limit or enable code completion
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-02 07:34 UTC by apr-apr-apr
Modified: 2015-01-05 12:52 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description apr-apr-apr 2015-01-02 07:34:59 UTC
A significant number of bug reports and enhancement requests relate to code completion, an aspect of the editor which is inherently complex and bug-prone, not to mention subjective.  

Surely one of the easiest ways to ameliorate the impact of problems in code completion would be to allow users to turn it on and off globally.  I suggest you add the following option at the top of the code completion tab:

Have Netbeans Attempt Code Completion: 
 - Never Ever
 - Only With An Explicit Command (eg CTRL+SPACE)
 - Whenever It Can
Comment 1 Jiri Prox 2015-01-05 11:44:51 UTC
This is mostly implemented, you can disable automatic opening code completion in Options -> Editor -> Code completion -> Auto popup Completion Window. (1 and 2)

The 'Whenever It Can' is implemented only for several languages - for java and javascript as far as I known - see the language specific options
Comment 2 apr-apr-apr 2015-01-05 12:52:16 UTC
(In reply to Jiri Prox from comment #1)

> This is mostly implemented, you can disable automatic opening code
> completion in Options -> Editor -> Code completion -> Auto popup Completion
> Window. (1 and 2)

To clarify: This suggestion is really about giving the user a single point of control over all code completion, (not just the popup window, but the injection of braces, quotation marks and closing tags as well).

I had thought that the "Never Ever" and "Whenever It Can" cases might be pretty trivial to code; I am heartened that you seem to think the same applies to "Only With An Explicit Command".

> The 'Whenever It Can' is implemented only for several languages - for java
> and javascript as far as I known - see the language specific options

I intended the "Have Netbeans Attempt Code Completion -> Whenever It Can" option to mean doing what I think Netbeans does now, to always try to use code completion in accordance with whatever finer-grained options have been selected.