0

I use a custom format and when ever I use it it makes every /* */ comment into

/*
* code
* code
* code
* code
* code
*/

Is there a short key to uncomment this?

MeraShishi
  • 23
  • 5

1 Answers1

0

This formatting is the default behavior in Eclipse. My advice is to distinguish comments from disabling code.

Comments: Use the block comment /* ... */ only for real comments, or to insert comments within a single line of code, for example anObject.aMethod(/* what means true here */ true);.

Disable code: Comment/Uncomment code always with // (Ctrl-7)`, in my experience this works perfectly. Then you can also uncomment single lines of the block.

sina72
  • 4,931
  • 3
  • 35
  • 36