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 271396 - "Shift Line Left", "Shift Line Right" and "Indent Lines" ignores Per-Project formatting options
Summary: "Shift Line Left", "Shift Line Right" and "Indent Lines" ignores Per-Project ...
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-29 10:53 UTC by soldatov
Modified: 2017-08-29 11:11 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 soldatov 2017-08-29 10:53:47 UTC
Scenario:
- Open Options tab
- Select Editor|Formatting tab
- Select Apache style
- Set Indent Syze = 10
- Select NetBeans style again
- Press OK button
- Create C++ project with such code:
int main() {
    if (true) {
        if (true) {
            if (true) {
                if (true) {
                    if (true) {
                        if (true) {
                            if (true) {
                                if (true) {
                                    if (true) {
                                        if (true) {
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    return 0;
}
- Open Project Properties window
- Select Formatting category
- Select "Use project specific formatting style" = Apache (or "Use clang-format" = LLVM)
- Press OK button
- Reformat file
==>
1) I see "indent lines" (vertical lines) every 4 columns (instead of 10)
2) Alt-Shift-LeftArrow and Alt-Shift-RightArrow moves code on 4 columns (instead of 10)