Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closure Braces Incorrectly Placed on New Line #6

Open
zschuessler opened this issue Dec 6, 2015 · 1 comment
Open

Closure Braces Incorrectly Placed on New Line #6

zschuessler opened this issue Dec 6, 2015 · 1 comment
Assignees

Comments

@zschuessler
Copy link

This issue persists for both this config, and native Netbeans. Native Netbeans controls do not allow distinction between class method brackets and lone function closures. (So I'm not even sure this is fixable with a config file alone)

Current behavior:

function current_behavior()
{
    // code
}

Desired behavior:

function desired_behavior() {
    // code
}
@allebb
Copy link
Owner

allebb commented Jan 26, 2016

Sorry for the late reply on this but as you're already aware, this cannot be achieved in NetBeans configuration as there is no distinction at present between class method braces and function braces and therefore even if I could add into the XML configuration NetBeans simply wouldn't be able to understand it/render the formatting as required.

I'll keep this open so that as soon as NetBeans does support this functionality I'll implement it!

I'm fairly sure that I saw that there was a FR open at Netbeans a couple of months ago (as I knew it was missing and was going to open a feature request) to enable this feature so hopefully we won't have to wait too long - With a little bit of luck the next version of Netbeans will have the ability to do this 👍

@allebb allebb closed this as completed Jan 26, 2016
@allebb allebb reopened this Jan 26, 2016
@allebb allebb self-assigned this Jan 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants