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 147612 - Indentation does not respect new formatting options.
Summary: Indentation does not respect new formatting options.
Status: RESOLVED DUPLICATE of bug 183666
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
: 150228 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-18 15:38 UTC by phinaesgage
Modified: 2010-04-10 04:28 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 phinaesgage 2008-09-18 15:38:02 UTC
If you have "Indent Top Level Class Members" _unchecked_ in Options -> Formatting (Language Java, Category Tabs and
Indents), when hitting return in the following code (when the cursor is positioned at the caret):

-----

public class TestClass
{

^

public void someMethod()
{
}

}

-----

the cursor should not indent. It does not indent after the first method definition.
Comment 1 Miloslav Metelka 2008-09-18 21:13:07 UTC
The indentation after Enter key does not check the particular setting yet.
Comment 2 Dusan Balek 2008-10-16 13:10:25 UTC
See issue #150228 for other examples of ignored options.
Comment 3 Dusan Balek 2008-10-16 13:11:21 UTC
*** Issue 150228 has been marked as a duplicate of this issue. ***
Comment 4 Vitezslav Stejskal 2010-04-10 04:28:34 UTC

*** This bug has been marked as a duplicate of bug 183666 ***