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 - Formatting: Option to prevent formatting from transforming "else if" statements
Summary: Formatting: Option to prevent formatting from transforming "else if" statements
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.1
Hardware: PC Windows 8.1
: P3 normal with 3 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-03 08:28 UTC by in-ws5
Modified: 2016-07-15 09:41 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.