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 128375 - Support ctrl-semicolon and ctrl-shift-semicolon
Summary: Support ctrl-semicolon and ctrl-shift-semicolon
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-26 00:30 UTC by _ tboudreau
Modified: 2009-04-10 16:58 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 _ tboudreau 2008-02-26 00:30:29 UTC
Since JavaScript uses ; as line terminators, similar behavior as the Java editor would be a good thing
Comment 1 Torbjorn Norbye 2008-02-26 01:09:25 UTC
I'm not familiar with that feature - can you point me to its implementation?
Comment 2 _ tboudreau 2008-02-26 01:21:29 UTC
Not sure where Hrebejk put the new version of it;  the old version is in contrib/semicolon.

Basically:
ctrl-semicolon (Command on mac): Append a semicolon to the end of the current line w/o moving the caret
ctrl-shift-semicolon:  Append a semicolon to the end of the current line, insert a new, properly indented line below it and move the caret there
Comment 3 _ tboudreau 2008-02-26 01:22:34 UTC
Ideally this shortcut ought to insert whatever is appropriate - e.g. if I'm writing an if statement, insert curly braces, etc. - but even the java module isn't doing 
that yet.
Comment 4 _ tboudreau 2009-04-10 16:58:08 UTC
Already fixed in 6.5