Community
Participate
Working Groups
Whenever you cut/copy and paste there seems to be an extra tab in each line that is pasted. This happens in the editor window.
Cannot reproduce on I20021115.
in Window->Preferences choose Java->Editor->Behaviour if Smart Pasting for indentation is selected then it always adds an extra tab and even an extra space (I have set my tab length to 3 spaces and have chosen to replace tabs with spaces). Perhaps I don't understand how this works but it certainly doesn't do anything useful.
On the current build I20021115 using your settings it works as expected. The indentation string uses the appropriated number of spaces as indicated on the formatter page. When reopening indicate your build number and give precises steps to reproduce.
before copying : -------------------- public class Test { private String field1; public Test() { } } ----------------------- select line 3 of the above code by placing the cursor just before the word private and hitting shift+END. copy the text by pressing Ctrl+C. Go to the next line and paste. Result: ------------------------- public class Test { private String field1; private String field1; public Test() { } } ------------------------------- move inside the constructor and paste again: ------------------------------ public class Test { private String field1; private String field1; public Test() { private String field1; } } -------------------------- In both cases it indents it too far. In the first case it indents it by 5 spaces???? and in the second case by 8 spaces!!!. Once again my tabs-to-spaces ratio is set to 3. I don't belive that the above is correct functionality. My build number is 200211151436. I am sorry that I didn't explain myself better in the previous two bug submits.
*** This bug has been marked as a duplicate of 29909 ***