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 70584 - [50cat] Add CC shortcut for semicolon / statement terminator
Summary: [50cat] Add CC shortcut for semicolon / statement terminator
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker with 3 votes (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-19 14:07 UTC by ieising
Modified: 2016-07-07 07:32 UTC (History)
1 user (show)

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 ieising 2005-12-19 14:07:48 UTC
[ JDK VERSION : 1.5.0_04 ]

Why not have code-completion add the semicolon for you? In about 90% of the cases I complete to a method (like your example Sean), and it would be nice if CC would just put the semicolon there. Have an option that can turn this on or off would be nice.

Iwan
Comment 1 clever 2005-12-19 18:37:30 UTC
Here's some details from my original post:
-------------------------------------------
I find that I'm getting more productive using the new code completion features
(great work!).
I find one slight possible productivity feature thats missing... (or should I
say, I can't seem to find a fast way to do it)..

For instance, if I have some code that looks like:

..
setHRLastModifiedTime(sourceTekUser.getHRSynchModTime());
setCommonName(sourceTekUser.getCommonName());
setDistinguishedName(sourceTekUser.getDistinguishedName ());
setEmployeeNumber(sourceTekUser.getEmployeeNumber());
..

My problem is that I find myself typing a lot of "END" ";" "[Enter]"

The cursor gets placed here:
...getSomeValue()|)

And I would like a shortcut to terminate the line. I know an option is to type:

')' - ';' - '[Enter]'

But, I'm wondering if anyone knows of, or has plans for a "Terminate statement",
or append terminator / semicolon... 

Perhaps this can be implemented so that when a semicolon is typed, the IDE
automatically goes to the end of the line (or current statement), and appends
the proper line terminator (for java - ";")..
Comment 2 clever 2005-12-20 15:27:27 UTC
Perhaps extend as such:

Given:
digest.append(theUser.toString(tekUserList)|

Hitting senicolon should yield:

digest.append(theUser.toString(tekUserList));|

Comment 3 clever 2005-12-20 15:29:10 UTC
Or, hitting Control-Shift Enter would automatically do all of the above, plus
add the behavior of the enter key.. putting the curson on the next line, ready
to type more statements.
Comment 4 Martin Balin 2016-07-07 07:32:09 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss