Eclipse\'s automatic formatter changes block comments such that the Source > Remove Block Comment does not completely remove the block comment. Source > Add Block Comment ad
I dont know if this helps solve your problem, but I found this very much helpful in my case. Consider this text -
String abc="abc";
String def="def";
System.out.println(abc+def);
System.exit(0);
After applying a block comment using CTRL + SHIFT + F.
/* String abc="abc";
String def="def";
System.out.println(abc+def);
*/System.exit(0);
Just add - after /* to exclude this block from formatting -
/*- String abc="abc";
String def="def";
System.out.println(abc+def);
*/System.exit(0);
Now Check Again!!!