Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

not so great feature

 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i've eclipse 3 and it has a add/remove block comment; but after adding a block comment if i use "format", then all formatting inside my block comment gets spoiled.

does anyone knows how to turn this around?

thanks in advance
 
Stefan Willi
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hy!
You can configure, how Eclipse formats your document. By default, Eclipse also formats your comments.

Go to:
Windows > Preferences > Java > Code Style

There you can edit a profile for Code-Formating. Under the Tab-Page Comments, you can disable or customize the formating of your comments.

Hope it's helpfull

Stefan
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here's what i mean:
at start:

after source->add block comment:

after source->format:

after source->remove block comment
 
Stefan Willi
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The good message: I can reproduce your problem.

The bad one: I havn't another advice rather than cutsomizing code formating or use line comments.

stefan
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34681
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Stefan. The easiest approach is to use line comments.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic