Community
Participate
Working Groups
Doing a copy-paste operation on code commented out with the single line comment operator (//) but with white space between the // and the text gets pasted with the writespace removed. The text // RELEASE: $$Revision: 1.4 $$ gets pasted as //RELEASE: $$Revision: 1.4 $$ This is also valid for any line that is pasted that starts with whitespace (as expected). If the block starts with /* and any block line starts with a non whitespace character at column 1 then the lines after this one get pasted with all whitespace intact while lines before get the whitespace are trimmed. Whitespace is trimmed out up to the position of the first non whitespace on pasted commented lines. In the later example, if the non whitespace character is on column 2 then next lines are trimmed by 1 space. If column is number 3 they get trimmed by 2 spaces and so on.
I have the same problem when in Smart Insert Mode. I don't know if this is the proper behavior when in that mode, but to get around it I temporarily turn off Smart Insert Mode (Ctrl+Shift+Insert). Also, this appears to be a duplicate of Bug #65949.
right - marking as dup and adding a comment there. *** This bug has been marked as a duplicate of 65949 ***