| Summary: | [formatter] Allow to add blank line(s) before a statement | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Lyle Ziegelmiller <lyle_z> |
| Component: | Core | Assignee: | Mateusz Matela <mateusz.matela> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | daniel_megert, jarthana, mateusz.matela |
| Version: | 4.4 | ||
| Target Milestone: | 4.13 M3 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://git.eclipse.org/r/147518 https://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=0da21f8ea91a757805c7fad5645bcf49a36c1bb9 |
||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 550083 | ||
New Gerrit change created: https://git.eclipse.org/r/147518 Gerrit change https://git.eclipse.org/r/147518 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=0da21f8ea91a757805c7fad5645bcf49a36c1bb9 Added a setting for before and after a statement with a code block. Verified for 4.13 M3 using build I20190820-1800 |
Hi. It would be nice if, when there is no blank line above/below a block of code, such as an if {...}, while {...}, try/catch block, etc., the code formatter could be configured to insert a blank line(s): This: int i = 1; while (...) { } int j = 2; would become this: int i = 1; while (...) { } int j = 2; thanks Lyle