Bug 197153 - Code formatter control by annotations in comments.
Summary: Code formatter control by annotations in comments.
Status: CLOSED DUPLICATE of bug 311582
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 4.18 M3   Edit
Assignee: Mateusz Matela CLA
QA Contact:
URL:
Whiteboard: To be verified for 4.18 M3
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-19 11:02 EDT by Nils Hammar CLA
Modified: 2020-10-12 16:12 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nils Hammar CLA 2007-07-19 11:02:33 EDT
Build ID: I20070625-1500

Steps To Reproduce:
When coding and code formatting is used different parts of the code is sometimes better off with different formatting styles.

It would be very useful if the formatter could be given directives in comments preceding the block to format. An example is initialization of arrays where a byte array is best formatted by several items per row while a string array may be better formatted by one item per row.

Another example is the declaration of variables where a section may be better off formatted with a specific structure like String.format("%-20s %-10s %1s %-20s", "final int", "alpha", "=", "42;")


More information:
Comment 1 Mateusz Matela CLA 2020-10-12 16:12:44 EDT

*** This bug has been marked as a duplicate of bug 311582 ***