I have recently started using eclipse mars and found a very irritating issue. When I comment a multi-line block of code using ctrl+shft+/
, it comments the block between /* */ but as soon as I save it, it puts a * in front of all the lines in the block. Now when I try to uncomment it using ctrl+shft+\
, only the start & end /* and */ are removed but the * added to all the lines not. What setting do I need to change in order to remove this auto formatting?
Example:
Comment formatting before save
/*This is just an example
of multi-line block comment
in eclipse mars*/
Comment formatting after save
/*
* This is just an example
* of multi-line block comment
* in eclipse mars
*/
Un-comment formatting after save, * are not removed that were added by eclipse
* This is just an example
* of multi-line block comment
* in eclipse mars
Finally I used the information posted in this answer which worked as desired.