Community
Participate
Working Groups
3.0 20040211 I can't figure out how to configure the new code formatter to allow embedded comments to remain on the same line. There are many options on the preference page but I can't find one that would fix this. Note that I have set my line sent to 800. Actually, I'll attach my current formatting options as a reference. Given the following code pattern: class.method(true /*don't force*/, false /*never release lock*/); After formatting it becomes: class.method(true /* * don't force */, false /* * never release lock */);
Created attachment 7821 [details] code formatting settings
>I can't figure out how to configure the new code formatter to allow embedded Disable comment formatting - but that's probably not what you want ;-)
Ownership changed.
In 3.3, you can disable block comment formatting. Is this good enough?
For me this is sufficient. :)
Using 3.3.2 or 3.4RC2 + comment 1 settings, the following test case: public class Test { static void foo(boolean first, boolean second) { } } class X { void bar() { Test.foo(true /* don't force */, false /* never release lock */); } } is formatted as: public class Test { static void foo(boolean first, boolean second) { } } class X { void bar() { Test.foo(true /* don't force */, false /* never release lock */); } } So it seems that this problem does no longer occurs since a while...
Verified for 3.4RC3 using I20080530-0100