来源:http://blog.youkuaiyun.com/phpdata/article/details/6654658
首先进入首选项:窗口(windows)->首选项(preferences...)
1. windows=》preferences=》general=》editors=》text editors 勾选 “insert spaces for tabs”
2. windows=》preferences=》phpeclipse=》php=》typing 勾选 “insert spaces for tabs(……)”
至此,配置完毕。
但是因为版本的不同,有些会出现这样的问题:if{ 然后按enter键换行,会自动缩进一个tab 而这个tab并没有正确的被用4个空格替换,解决办法
进入:windows=》preferences=》phpeclipse=》php=》formatter =>style 看选项 “indentation is represented by a tab” 是否选中 (默认选中) ,如果选中,则不选该选项,如果没有选中,则选中该选项 ,重启eclipse 会发现设置成功
本文详细介绍了如何在Eclipse编辑器中配置Tab和空格的使用方式,包括如何通过首选项设置来实现插入空格代替Tab,并解决了不同版本下可能出现的问题。教程适用于PHP开发环境。
756

被折叠的 条评论
为什么被折叠?



