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 111947

Summary: indentation completely unusable
Product: javascript Reporter: Pavel Buzek <pbuzek>
Component: EditorAssignee: Jan Jancura <jjancura>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: pjiricka
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Pavel Buzek 2007-08-03 19:39:49 UTC
Every line is indented, regardless of its content. Each additional line gets indented more then the previous line. I.e.
the first line by 8 characters from the text above, next by 16, next by 24. JavaScript indentation uses 8 characters
unlike all other editors which use 4 -- I have 4 in Options | Editor | Indentation | Number of Spaces per Indent.

The code looks like this:
function foo () {
        x = 45;
                y = 1;
                                foo();
                                                                bar();
                            
Both in .js and embedded in .html. Build   070719 (I will verify in a newer build shortly).
                                                                                                 
I am filing this as a P1 because this makes the editor completely unusable for typing (maybe you can use it for reading
code).

I could not find a duplicate but I cannot believe that nobody noticed this. If this is a duplicate please make sure the
other bug has appropriate priority.
Comment 1 Martin Schovanek 2007-08-06 10:27:50 UTC
Looks like duplicate of Issue #110102. Feel free to reopen it if you can reproduce in latest build.

*** This issue has been marked as a duplicate of 110102 ***