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

前端 未结 3 1227
北恋
北恋 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-17 23:57

    Try CTRL+[right,left] arrow key. Certainly one of my most-used combos.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-18 00:15

    As it turns out, this appears to not be possible in Eclipse.

    0 讨论(0)
提交回复
热议问题