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 259106

Summary: Formatting: Option to prevent formatting from transforming "else if" statements
Product: editor Reporter: in-ws5
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: drise
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 8.1   
Issue Type: ENHANCEMENT Exception Reporter:

Description in-ws5 2016-05-03 08:28:49 UTC
The option 'Special "else if" Treatment' allows you to pick between 2 options on how the formatting is supposed to deal with the "else if" clause.

However, there is no "3rd" option on how to deal with "else if" formatting: leave it as is.

Crurrently, in both options, the code always chooses one side. Either all the "if" statements become part of the "else" so that an "else if" situation is created, or all "else if" statements become an "if" inside an "else" statement.

In my situation my colleagues and I should be able to choose per-situation on how to format the code, regarding this particular issue.