您的位置:首页 > 编程语言 > Java开发

eclipse 设置 tab width 为4 个空格 (spaces)

2018-01-29 23:13 295 查看

eclipse 设置 tab width 为 4 个空格 (spaces)

1. Window -> Preferences -> General -> Editors -> Text Editors,选中右侧的 Insert space for tabs.

Apply and Close.



 

2. Window -> Preference -> C++ -> Code Style -> Formatter,点击右侧的Editor,选择左侧 Tab policy 的值为 Spaces only,应用即可。



 

若出现应用 Apply 按钮为灰色的情况,需要回到上一步。点击 New... 按钮,根据当前的样式重新生成一个新的样式并保存,重复第2步,编辑该样式即可。



 



 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: