How can I use tabs for indentation in IntelliJ IDEA?

前端 未结 9 1594
小蘑菇
小蘑菇 2021-01-30 09:35

How can I use tabs instead of multiple spaces for indentation in IntelliJ IDEA 11.0?

I have \"Use tab character\" checked under \"Code Style\" > \"General\" > \

9条回答
  •  失恋的感觉
    2021-01-30 10:22

    Another useful option in IDEA to switch off or keep checked if you really need that:

    Preferences -> Code Style -> Detect and use existing file indents for editing
    

    if your team is going to switch to tab formatting with existing code written with spaces, uncheck that

提交回复
热议问题