Bug 6552 - Shift right ignores indent settings
Summary: Shift right ignores indent settings
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M2   Edit
Assignee: Claude Knaus CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-04 11:00 EST by Jacob Marner CLA
Modified: 2002-01-09 11:00 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Marner CLA 2001-12-04 11:00:59 EST
When using the shift right command in the Java editor tabs are inserted in 
front of the line. This also happens even if the the user selected to use 
spaces instead of tabs in the Java preferences.

If the user, in the preferences screen, set the setting to use spaces instead 
of tabs then shift right should spaces also instead of tabs.
Comment 1 Jacob Marner CLA 2001-12-04 11:53:06 EST
Also, this problem is also the case for shifting left and general editing.

When shifting left the editor always removes 1 tab or up to 4 spaces (whatever 
is first in the line). If the editor is set up to use spaces instead of tabs 
shift left should remove spaces so the text moves the given number of places to 
the left.

Also, even when the "use spaces instead of tabs" option is set tabs are 
inserted instead of spaces when the tabs key are hit. I am aware that this 
option is mainly intended for the "Format" feature but it makes sense also to 
apply it to editing.
Comment 2 Jacob Marner CLA 2001-12-05 14:57:04 EST
This bugs was tested against R1.0 and against stable build 20011107 and found 
in both versions.
Comment 3 Knut Radloff CLA 2001-12-10 13:09:56 EST
Related bug:
http://bugs.eclipse.org/bugs/show_bug.cgi?id=2970
Comment 4 Claude Knaus CLA 2002-01-09 11:00:58 EST
fixed > 20020108