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 258409 - Ctrl+Alt+F does wrong alignment
Summary: Ctrl+Alt+F does wrong alignment
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-17 01:45 UTC by ale4349koc
Modified: 2016-03-17 13:36 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 ale4349koc 2016-03-17 01:45:35 UTC
The problem exists in NB 8.1 only. There is an example
Before Сtrl+Alt+F
// -------------------------------------------
if (DD != 0) {
    rez = Integer.toString(DD);
} else {
    if (HH != 0) {
        rez = Integer.toString(HH);
    } else {
        rez = Integer.toString(MM);
    }
}
// -------------------------------------------
After Сtrl+Alt+F
// -------------------------------------------
if (DD != 0) {
    rez = Integer.toString(DD);
} else if (HH != 0) {
    rez = Integer.toString(HH);
} else {
    rez = Integer.toString(MM);
}
// -------------------------------------------