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

Bug 204258

Summary: Copy Lines and Correct Indentation screw up indentation
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2007-09-21 07:00:13 EDT
I20070920-0936

- have:
public class Try {
	public void testManyInsertsIntoDoc3() throws Exception {
		Document props= new Document(
				"key_a=value\n" +
				"\n" +
				"key_b_2=value\n");
	}
}

- select the entire method and do Copy Lines (Ctrl+Alt+Down) or Correct Indentation (Ctrl+I)

=> line '				"key_b_2=value\n");' loses 2 tabs
Comment 1 Dani Megert CLA 2007-09-21 08:20:37 EDT

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