Project: JDT
Bug 5473 Shift-Left behavior with intermixed tabs and spaces
Reported: 2001-11-02 11:32:12 | Status: resolved fixed

Build 20011025 1. In a default text editor type in the following: <space><tab>some text <tab>some text 2. Now highlight the two lines above and execute Shift-Left. Notice that nothing moves. 3. Replace the tab character in the first line with spaces so that the two lines are indented the same visually. Execute Shift-Left. The text now moves. I'm not sure how this is spec'd, but in the first scenario it seems like the second line should be shifted left and the first line should be shifted left at least to the space character (i.e., get rid of the tab). At any rate, it's definitely confusing if there is a stray space. You don't know why the text won't shift.

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java