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 22217 - auto creation of * in entering comments should be followed by space
Summary: auto creation of * in entering comments should be followed by space
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 24971 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-09 02:46 UTC by bwl
Modified: 2013-09-02 14:23 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 bwl 2002-04-09 02:46:44 UTC
When writing block comments in Java leading '*' characters 
are automatically created when the user hits the enter 
key.  However, standard convention is to follow the '*' 
with a space.  Would be nice if that convention was 
supported.
Comment 1 bwl 2002-04-10 00:15:13 UTC
Actually, what would be even more useful is if it placed 
as many spaces after the '*' as there were on the previous 
line.  i.e. support automatically indenting in comments to 
the same level as the previous line.
Comment 2 Miloslav Metelka 2002-04-11 11:12:04 UTC
I think we used to add space but some users complained that they need
to press backspace to remove the space if they wish to close the
comment by '*/'. But there could be an expert option for adding the
space or not.
Comment 3 Marek Grummich 2002-07-22 09:50:08 UTC
Set target milestone to TBD
Comment 4 Marek Grummich 2002-07-22 09:56:00 UTC
Set target milestone to TBD
Comment 5 Jesse Glick 2004-09-14 17:39:03 UTC
*** Issue 24971 has been marked as a duplicate of this issue. ***
Comment 6 _ gtzabari 2006-08-26 05:03:42 UTC
This was recently changed to insert the space and I find myself to be one of
those people who gets annoyed having to type backspace to close the comment with */

I am in favor of inserting the space as the original reporter recommended but we
need to find a nicer way of getting Netbeans to close the comment without having
to type backspace. Any ideas? Maybe if you type /<enter> on a line and nothing
else it can be smart enough to interpret it as <backspace>/<enter>? Kinda like
you can enter semicolon while the caret is inside brackets and Netbeans will
push the semicolon to the end of the line. No good answers here :(
Comment 7 motobud 2008-08-22 02:31:50 UTC
Any chance of getting this into 6.5?  It's very annoying to have to hit the backspace then the / to end the comment block.
Comment 8 Vitezslav Stejskal 2008-08-22 11:58:46 UTC
I'm sorry, but most likely not. We are after feature freeze and have a lot of more pressing defects to fix.