-
Notifications
You must be signed in to change notification settings - Fork 453
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
Adding extra indentation in Apex code #1361
Comments
If this is not a problem with Atom Beautify settings it is mostly like a problem from the beautifier, uncrustify. You might try opening an issue with uncrustify and linking it to this issue. |
I am working on uncrustify. |
@gmaurel Those should be available in https://gist.github.com/anonymous/f1b5b9139d6337b588e53b83bb9945e5 Just let us know if there is additional information we should be including. |
Uncrustify does not support Apex as a language but Atom beautify thinks otherwise https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/uncrustify/index.coffee#L57. From what I've read Apex is closer to Java and you could try to use that as language override (unless there are some |
Thanks @mihaipopescu I will recommend some reconfigurations to Atom Beautify. |
To confirm, should Apex be removed from Uncrustify beautifier support in Atom-Beautify or is there some configuration changes required to make it work? |
I don't know anything about Apex language other than it's a Java dialect but where does it start to differ that I don't know.
I think that's entirely your call. Uncrustify supports Java and if that's ok with you I guess you can make some changes to the configs to use that language instead. Better have something than nothing. |
Once #1707 has been merged Apex will be treated as |
Published to v0.30.0 |
The results of beautification are not what I expect.
This is what the code looked like before:
The beautified code should have looked like this:
Actual Output
The beautified code actually looked like this:
Steps to Reproduce
Atom Beautify: Beautify Editor
Debug
Here is a link to the
debug.md
Gist: https://gist.github.com/anonymous/f1b5b9139d6337b588e53b83bb9945e5Checklist
I have:
so I know this is not a duplicate issue
debug.md
Gist to this issueThe text was updated successfully, but these errors were encountered: