Bug 45499 - [typing] Shift left does not work with partial indentation
Summary: [typing] Shift left does not work with partial indentation
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2003-10-24 09:44 EDT by Douglas Pollock CLA
Modified: 2007-06-22 10:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Pollock CLA 2003-10-24 09:44:31 EDT
I'm breaking apart pieces from Bug 45443....

I also found another bug. Shift left does not work in 3.0 M4 if you for example
add one to three spaces to the beginning of a line and try to shift it to the
left. I'm using 4 spaces instead of tab indenting. So I guess that shift left is
broken if the number of spaces does not match the number of spaces to replace a
tab with.
Comment 1 Kai-Uwe Maetzel CLA 2003-10-24 14:11:36 EDT
It's actually not broken but works as designed. Shift right and shift left are 
symmetric. However, since we have "correct indentation" the symmetry could be 
loosened.
Comment 2 Max Gilead CLA 2004-04-08 10:56:09 EDT
I also found this problem and wanted to report it as a bug. I think that when
shifting left editor should ignore all lines which are already at the left edge
and shift left remaining ones, not blocking on non-standard number of spaces or
tabs at their beginning (note: mixing tabs and spaces currently also causes
problems). Shifting a block of code to the left should in the end 'flatten' text
to the left edge.
Comment 3 Max Gilead CLA 2004-04-08 11:01:15 EDT
Maybe I'll explain why it's so important - I find this feature important when
editing someone else's code. Some people are making a mess in their sources
mixing tabs and spaces at line start in various wild combinations. With jEdit I
typed Shift+Tab several times on a block of text which produced text nicely
flattented to the edge. With Eclipse I have to manuall edit each line separately.
Comment 4 Dani Megert CLA 2004-04-12 13:27:47 EDT
Did you try "Correct Indentation" (Ctrl+I)?
Comment 5 Daniel Serodio CLA 2004-05-25 19:28:52 EDT
Try AnyEdit tools plugin: http://andrei.gmxhome.de/anyedit/
Then go to Source | Convert | Leading tabs to spaces
Comment 6 Dani Megert CLA 2004-05-26 03:51:45 EDT
waiting for input
Comment 7 amone CLA 2004-05-27 15:58:56 EDT
AnyEdit is not an option. Just install jEdit and try tab and shift+tab.
Comment 8 Dani Megert CLA 2007-06-22 09:59:46 EDT
Get rid of deprecated state.
Comment 9 Dani Megert CLA 2007-06-22 10:04:55 EDT
.