Saturday, November 10, 2012

Making Eclipse's Java code formatter ignore 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.

/*- 
 * foo
 *    line1
 *        lin2
 */

No comments:

Post a Comment