Bug 102381 - Comment and auto format is not working together
Summary: Comment and auto format is not working together
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-30 15:16 EDT by Hansgeorg Schwibbe CLA
Modified: 2006-03-27 07:50 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hansgeorg Schwibbe CLA 2005-06-30 15:16:31 EDT
I have been written for this bug since version 3.0.1 of eclipse, but nothing has
changed. So I am writing again for this bug:

WHEN I HAVE A COMMENT LIKE
/*
  System.out.print("This ");
  System.out.print("is ");
  System.out.print("a ");
  System.out.print("test");
  int i = 0;
  while (i < 10) 
  {
    System.out.print('!');
    i++;
  }
  System.out.println();
 */
IN MY SOURCE CODE, AND I AM GOING TO AUTO FORMAT THE SOURCE CODE BY PRESSING
CTRL-SHIFT-F, I WILL GET THE FOLLOWING CODE:
/*
 * System.out.print("This "); System.out.print("is ");
 * System.out.print("a "); System.out.print("test"); int i = 0; while (i <
 * 10) { System.out.print('!'); i++; } System.out.println();
 */

IS THERE ANYBODY WHO UNDERSTAND ME THAT THIS COULD BE HORRIBLE FOR ME WHEN I
HAVE TO GET SOME PARTS (NOT THE WHOLE CODE, ONLY SOME USABLE PARTS) OF THE OLD
ALGORITHM BACK?

FOR EXAMPLE TRY TO EXTRACT THE WHILE LOOP INSIDE THE COMMENT.
Comment 1 Olivier Thomann CLA 2005-07-01 10:12:16 EDT
Why don't you put your code within <pre> tag?
And no need to yell at us! This is really unpleasant.
Comment 2 Olivier Thomann CLA 2005-07-11 16:37:45 EDT
Please reopen when you provide the requested information.
Comment 3 Philipe Mulet CLA 2006-03-27 07:49:54 EST
reopening to close properly.
Comment 4 Philipe Mulet CLA 2006-03-27 07:50:29 EST
closing since didn't hear back in a long time; and no action planned.
<pre> tag is the right way to go as far as javadoc is involved