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 239115 - More formatting options to "Spaces Before Parentheses" category
Summary: More formatting options to "Spaces Before Parentheses" category
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Other
: P3 normal with 2 votes (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-04 14:21 UTC by ollika
Modified: 2015-10-13 14:06 UTC (History)
0 users

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 ollika 2013-12-04 14:21:43 UTC
I don't usually use parentheses in return statements, but if I do, I want the space there. For example:

  return (this || that);
        ^

But I don't want a space when using the sizeof operator:

  sizeof(Class);

Currently both cases are governed by the "Other Keywords" formatting option in "Spaces Before Parentheses"
category so I can't configure them separately. It would probably be enough just to be able to configure
"return" statement separately.


Also I could not find a way to configure spaces for C++ style casting (const_cast, static_cast,
dynamic_cast, and reinterpret_cast). For example my:

  static_cast<int>(test);

is formatted to:

  static_cast<int> (test);

I think the most commonly used style is to not use a space, but the safest option would be to add a
configurable parameter for these too.
Comment 1 Marc_W 2015-10-13 14:06:03 UTC
Are there any news regarding this feature?