Category: Code

Stop Eclipse from word wrapping comments


Is there a way to stop Eclipse from mangling the comments in my source files? My main issue is stopping it from word wrapping them. I’ve managed to configure Eclipse to not word wrap any code, but it still seems to do it to comments.


Use /*- (note the hyphen) at the beginning of the block comment, and the formatting won’t be affected if you format the rest of the file.