[OT] Spaces/tabs (Was: simple display (from: GUI library for D))

Bruno Medeiros brunodomedeiros+spam at com.gmail
Wed Apr 13 06:06:27 PDT 2011


On 11/04/2011 22:03, David Gileadi wrote:
> On 4/11/11 1:51 PM, "Jérôme M. Berger" wrote:
>> Nick Sabalausky wrote:
>>> "Andrej Mitrovic"<andrej.mitrovich at gmail.com> wrote in message
>>> news:mailman.3396.1302548836.4748.digitalmars-d at puremagic.com...
>>>> Smart editors also allow you to unindent with a single backspace
>>>> regardless if you're using tabs or spaces.
>>>
>>> In other words, *some* editors handle space-indentation intelligently
>>> (and
>>> do so by reinventing *tabs*), while *all* editors handle tab-indentation
>>> intelligently.
>>>
>> I have seen editors that would convert a tab to spaces and only
>> delete one space when hitting backspace ;)
>>
>> Jerome
>
> Eclipse, I'm looking at you!

In Eclipse you can press Shift-Tab to reduce the indentation by one 
level, regardless of whether it's using spaces or tabs. This also works 
if you have multiple lines of code selected in the editor. (so if you 
have 4 spaces of indentation and you press Shift-Tab anywhere on the 
line it will delete those 4 spaces, assuming you configured a level of 
indentation to be 4 spaces (that's usually the default though))

-- 
Bruno Medeiros - Software Engineer


More information about the Digitalmars-d mailing list