Reputation: 1967
When I'm writing code, I keep format it using CTRL + SHIFT + F. Everything works fine except comments, Eclipse wrapes comments and its very annoying. I just want single line comment, no matter how long it is.
For example
void SomeMethod()
{
int someValue = 155; // This value is for blah blah blah blah
}
after format
void SomeMethod()
{
int someValue = 155; // This value is
// for blah blah
// blah blah
}
Now its taking 3 lines for nothing.
I'm using Eclipse 3.7.2, anyway to fix it ?
Upvotes: 0
Views: 72
Reputation: 90447
Comments
tab contains all the stuff about comments formatting. Set the Maximum line width for comments
to a very large number. Upvotes: 2