Braces for eclipse code formatterThe Eclipse code formatter currently doesn't support inserting braces. I have made an adaptation to the code formatter - part of Eclipse - to always insert braces in statements accepting a statement block (statements like if and for). At this moment this behaviour is not configurable via the gui, but it is configurable by switching the jar files of your eclipse installation. Currently the formatter always inserts the braces on own lines. If the compact style with braces on the same line is chose autoformat twice. (When I get enough responses I'll fix this, as the coding conventions I use prescribes the braces on their own lines, and the workaround of formatting twice works, I am not really concerned currently.) Changes for Eclipse 3.1.2Changes for Eclipse 3.1.1Changes for Eclipse 3.1Changes for Eclipse 3.0.2Changes for Eclipse 3.2 m2UUIDs and information about UUIDs If you have improvements, contact information on the homepage of this host. The uptime of this host |