Is there a way to get Eclipse to treat 4 spaces exactly as it treats a tab?

前端 未结 3 1228
北恋
北恋 2020-12-17 23:18

I understand how to get Eclipse to insert spaces in place of tabs, but then I\'d rather not have to arrow through 12 spaces to reach an indented block.

Bonus points

3条回答
  •  既然无缘
    2020-12-18 00:10

    With the next Eclipse 20199.12/4.14, that might actually be possible! (albeit ten years later)

    See "Backspace/delete can treat spaces as tabs"

    If you use the Insert spaces for tabs option, now you can also change the backspace and delete keys behavior to remove multiple spaces at once, as if they were a tab.

    The new setting is called Remove multiple spaces on backspace/delete and is found on the General > Editors > Text Editors preference page.

提交回复
热议问题