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 77094

Summary: IDE doesn't keep indentation when single comment is on the line
Product: ide Reporter: retpyrc <retpyrc>
Component: CodeAssignee: issues@ide <issues>
Status: RESOLVED WORKSFORME    
Severity: blocker    
Priority: P4    
Version: 5.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description retpyrc 2006-05-30 16:01:48 UTC
When I press enter at the begining of an indented line, that is after the 4
spaces but before the code itself, for example:

    |System.out.println( "Hello World" )
    ^
then the IDE will insert a new line but also keep the indentation.

However, If the code begins will two backward slashes, //, then the IDE doesn't
keep the indentation.
{
    |//this is a single lined coment
}    
becomes:
{
    
//this is a single lined coment
}

when it should be:
{
    
    //this is a single lined coment
}
Comment 1 Jiri Prox 2006-06-02 16:09:07 UTC
It has been fixed in version 6.0.