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 223775

Summary: When completing function call that has no parameters, place cursor after braces
Product: javascript Reporter: Vladimir Riha <vriha>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Vladimir Riha 2012-12-13 13:53:01 UTC
Sample case:

function test(){};

var a = new t|

If you invoke cc at "|", select test() from code completion list and press enter, cursor is like this:

var a = new test(|)

I think it would be handy that in case that function has no parameters, the cursor would be placed like:

var a = new test()|


Product Version: NetBeans IDE Dev (Build 201212130001)
Java: 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18
System: Windows 8 version 6.2 running on amd64; Cp1252; en_US (nb)