Bug 107037 - Formatter for pasting single line comments
Summary: Formatter for pasting single line comments
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.4 RC3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-15 11:54 EDT by David I CLA
Modified: 2008-05-30 13:06 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David I CLA 2005-08-15 11:54:09 EDT
If cut a single line comment that looks like:

// This is a comment

and I paste it to a block of code that is indented, I get:

//              This is a comment

The comment is indented to the block, but the // characters are at column 1. 

I cannot see how to modify this behavior. I want to keep the // characters 1
space in front of the comment, and have the // characters indented like:

             // This is a comment
Comment 1 Frederic Fusier CLA 2008-05-27 05:28:27 EDT
This has been fixed in 3.3 as I can reproduce this problem in 3.2.2 but not in 3.3.2 and neither in 3.4RC2 => close as WORKSFORME
Comment 2 Jerome Lanneluc CLA 2008-05-30 13:06:27 EDT
Verified for 3.4RC3 using I20080530-0100