Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 150817

Summary: Incorrect formatting on pasting a comment
Product: [Eclipse Project] JDT Reporter: Randy Hudson <hudsonr>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Randy Hudson CLA 2006-07-17 11:09:09 EDT
If I am pasting:
"//Check condition x for y"
at the following locating:
\t\t<<CARET>>
\t\tfoo = value;

The result should be:
"\t\t//Check condition x for y"

Instead, I am seeing:
"//\t\tCheck condition x for y"

The latter formatting might make sense if I have code that has been temporarily commented out (CTRL+/). But it I think it is incorrect for "documentation".

BTW, if I then select the line and auto-format it, it fixes the "mistake".
Comment 1 Dani Megert CLA 2006-07-17 11:30:19 EDT

*** This bug has been marked as a duplicate of 65841 ***