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 239846 - Closing brace ) and semicolon not autoinserted on Enter
Summary: Closing brace ) and semicolon not autoinserted on Enter
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2013-12-29 01:16 UTC by douglasv
Modified: 2013-12-30 06:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

IDE log (32.66 KB, text/plain)
2013-12-29 01:16 UTC, douglasv

Note You need to log in before you can comment on or make changes to this bug.
Description douglasv 2013-12-29 01:16:27 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.0-b56

$(document).ready(function() {
    $('#switcher-large').on('click', function (){

with this code:  typing ( 'cli   and pressing ctrl-spacebar didn't invoke any code completion
also you have to enter the opening { and after pressing enter you have to enter the final ;
Comment 1 douglasv 2013-12-29 01:16:30 UTC
Created attachment 143499 [details]
IDE log
Comment 2 Vladimir Riha 2013-12-29 14:03:29 UTC
Thank you for reporting.

Ad no completion for "cli", this is not supported I believe (if you mean the "click" in first parameter of on()). Editor does not know that first parameter of on() call is event.

Ad { and ; Could you please describe step by step to reproduce it (what do you type and what do you expect to complete)? Thank you in advance
Comment 3 Vladimir Riha 2013-12-29 16:15:14 UTC
From reporter's email:

$(document).ready(function() { 

} ) ;

after typing the first { after function()  and pressing enter,
I would expect the editor to complete the code block by automatically typing } ) ;
Comment 4 Vladimir Riha 2013-12-30 06:53:00 UTC
Reproducible, it autocompletes the closing }, but not ); It could be useful