(一) Eclipse
1、Window->Preferences->General->Editors->Text Editors->Displayed tab width: 4
2、针对java文件配置softtab
打开左侧菜单:Java -> Code Style -> Formatter,
然后点击Active profile中的Edit按钮,
在弹出的窗口中,选择General settings中的Tab policy为Spaces only,
修改Profile name然后保存即可。
(二) Gedit
Edit->Preferences->Editor->Tab width: 4
(三) UitraEdit32
中文:高级->配置->编辑器->自动换行/制表符设置->制表站值:4
英文:Advanced-> Configuration->Editor->Tab stop value: 4
(四) EditPlus
Tools->Preferences->File->Settings & syntax->Tab/Indent->Tab: 4
注:该编辑器可以针对不同的文件格式设置不一样的Tab值,所以一定要在Settings & syntax->File Types选中文件类型,一般是Java、C/C ++及Default这三种类型
(五) Source Insight
Options->Document Options->Tab width: 4