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 239537

Summary: "Identation Guide Lines" works badly in C/C++ files
Product: editor Reporter: soldatov <soldatov>
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alexvsimon, issues
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2013-12-16 18:43:25 UTC
Code:
int main(int argc, char** argv) {
    if (1) {
        if (1) {
            if (1) {
                if (1) {
                    if (1) {
                        ;
                    }
                }
            }
        }
    }
    return 0;
}

Expected behavior: All 5 'if' has identation guide lines
Real: 2 'if' has gray lines
Comment 1 Alexander Simon 2013-12-17 07:41:46 UTC
Investigation:
Editor uses SimpleValueNames.SPACES_PER_TAB property for indent size.
Should use SimpleValueNames.INDENT_SHIFT_WIDTH.
See change set in the bug #182513

Reassign to evaluation.
Comment 2 Dusan Balek 2014-01-15 15:33:29 UTC
Should be already fixed.

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