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 - When completing function call that has no parameters, place cursor after braces
Summary: When completing function call that has no parameters, place cursor after braces
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-13 13:53 UTC by Vladimir Riha
Modified: 2012-12-13 13:53 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 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)