Hi, I have the following java code plus comments and want to keep the same format in Eclipse java file. But, when I say Ctrl+Shift+F (Format option), I am loosing all format. Please advice what should I do ?
OCPJP 6.0-81% | Preparing for OCWCD
http://www.certpal.com/blogs/cert-articles | http://sites.google.com/site/mostlyjava/scwcd |
Go to Windows | Preferences | Java | Appearance | Formatter and click Edit next to the active profile. On the Profile dialog, click that Comments button and uncheck the various settings. For this particular comment, unchecking "Enable block formatting" should be sufficient.
But personally, I would change this comment into a javadoc comment for the either the class of the main method, using HTML tags for the options (a..g).
By the way, either your post has a typo or you are missing the '/' on line 25 after the '*' to end the comment.