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 269708 - Allow camel case completion
Summary: Allow camel case completion
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-01 13:53 UTC by ilia
Modified: 2017-04-21 09:29 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
spec (310 bytes, patch)
2017-02-01 14:33 UTC, ilia
Details | Diff
patch (10.42 KB, patch)
2017-02-01 14:33 UTC, ilia
Details | Diff
Add underscore-based "camel_case" (4.11 KB, patch)
2017-02-02 10:23 UTC, ilia
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ilia 2017-02-01 13:53:20 UTC
Allow camel case completion for in addition to a basic one.

Example:

-------------8<---------------
void functionAaa() {
}

void functionBbb() {
}

void functionAaa() {
}

int main() {
    funA<Ctrl+Space>
}
-------------8<---------------
Expected completion:
functionAaa
functionAaaExtra
Comment 1 ilia 2017-02-01 14:33:04 UTC
Created attachment 163537 [details]
spec
Comment 2 ilia 2017-02-01 14:33:21 UTC
Created attachment 163538 [details]
patch
Comment 3 ilia 2017-02-01 14:35:39 UTC
Patches are attached.

After a push to a current repository
the performance tuning may be needed.

TODO:
Convert CharSequence to String only when needed
Introduce Pattern.compile one-level cache
Comment 4 ilia 2017-02-02 10:23:02 UTC
Created attachment 163547 [details]
Add underscore-based "camel_case"
Comment 5 Quality Engineering 2017-02-10 03:53:10 UTC
Integrated into 'main-silver', will be available in build *201702100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/803f46de4d94
User: Ilia Gromov <ilia@netbeans.org>
Log: Fixed #269708 - Allow camel case completion
Comment 6 Quality Engineering 2017-03-03 03:54:41 UTC
Integrated into 'main-silver', will be available in build *201703030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/69321f179ab4
User: Ilia Gromov <ilia@netbeans.org>
Log: Fixing #269708 - Allow camel case completion
Turn off camel case completion to see if baseline for performance tests is changed
(transplanted from 2bd9b722e80ec378d4a920e17664ead563e1bb17)
Comment 7 Quality Engineering 2017-03-15 02:50:19 UTC
Integrated into 'main-silver', will be available in build *201703150002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/99ebdbfb7159
User: Ilia Gromov <ilia@netbeans.org>
Log: Fixing #269708 - Allow camel case completion
Turn on camel case completion, move heavy methods to be executed last
(transplanted from 9ba6b7ebe909ffbfd25e67e6f88ce7c13ed69318)
Comment 8 ilia 2017-04-13 10:44:38 UTC
https://netbeans.org/bugzilla/show_bug.cgi?id=269708 Changesets:
    http://hg.netbeans.org/releases/rev/f741b2cd160a # Fixed #269708 - Allow camel case completion
    http://hg.netbeans.org/releases/rev/b47a16fe6c19 # Additional fix for #Bug 269708 - Allow camel case completion. Add underscore-based "camel_case"
    http://hg.netbeans.org/releases/rev/2bd9b722e80e # Fixing #269708 - Allow camel case completion
    http://hg.netbeans.org/releases/rev/9ba6b7ebe909 # Fixing #269708 - Allow camel case completion
    http://hg.netbeans.org/releases/rev/17a12cc82eb9 # Fixing #269708 - Allow camel case completion
Comment 9 soldatov 2017-04-21 09:29:13 UTC
Verified in NetBeans IDE 8.2 (Build 201704181436)