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 - IDE doesn't keep indentation when single comment is on the line
Summary: IDE doesn't keep indentation when single comment is on the line
Status: RESOLVED WORKSFORME
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P4 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-30 16:01 UTC by retpyrc
Modified: 2006-06-02 16:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.