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

Handle GuardedBlocks properly #17

Closed
markiewb opened this issue Sep 23, 2013 · 1 comment
Closed

Handle GuardedBlocks properly #17

markiewb opened this issue Sep 23, 2013 · 1 comment
Assignees
Milestone

Comments

@markiewb
Copy link
Collaborator

See the impl in org.netbeans.modules.editor.impl.ReformatBeforeSaveTask

@funfried funfried added this to the 1.13.0 milestone Dec 16, 2019
@funfried funfried self-assigned this Dec 16, 2019
funfried pushed a commit that referenced this issue Jan 7, 2020
#17
Implemented guarded blocks properly for the Eclipse Java Code Formatter, unfortunately it's not possible for the Google Java Code Formatter at the moment: google/google-java-format#433
@funfried
Copy link
Owner

funfried commented Jan 7, 2020

Implemented for Eclipse Formatter, but not possible for the Google Formatter at the moment as it seems: google/google-java-format#433

@funfried funfried closed this as completed Jan 7, 2020
funfried pushed a commit that referenced this issue Jan 21, 2020
…er is now triggered by the NetBeans actions itself, therefore every reformat trigger uses now the configured formatter, e.g. also after a code template was inserted. That means also that there is no more format on save option, this can be achieved now by NetBeans' On-Save action.

So with this commit, these issues are fixed or at least improved:
#24 Preserve linebreakpoints has improved (still not as perfect as with the internal NetBeans formatter but pretty close)
#92 The configured formatter takes now care when a code template is inserted, so if it tells to not format a specific part this part is ignored from formatting
#17 Hanlding of guarded blocks has improved by design
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