‘Window’ -> ‘Preferences’
In tree select: Java -> Code Style -> Formatter
Click ‘Edit’ button
Tab ‘Identation’: Set ‘Tab policy’ to ‘Spaces only’
Click ‘Apply’/’Ok’
Eclipse使用Space键替换Tab键不生效的解决方案
最新推荐文章于 2023-02-16 14:24:44 发布
‘Window’ -> ‘Preferences’
In tree select: Java -> Code Style -> Formatter
Click ‘Edit’ button
Tab ‘Identation’: Set ‘Tab policy’ to ‘Spaces only’
Click ‘Apply’/’Ok’