Eclipse 用空格替换 tab键
2014-12-23 16:22
232 查看
来源:http://blog.csdn.net/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 会发现设置成功
首先进入首选项:窗口(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键
- eclipse 用空格替换 tab键
- 解析php中eclipse 用空格替换 tab键
- eclipse 用空格替换 tab键
- Eclipse 4个空格替换Tab设置方法
- [Eclipse] - Eclipse空格替换tab
- 解析php中eclipse 用空格替换 tab键
- 字符串替换空格
- 实现一个函数,将字符串的每一个空格替换成 %20
- 剑指offer 面试题4 替换空格
- 剑指offer(3):替换空格
- Linux替换变量中包含空格 sed: -e expression #1, char 6: unterminated `s' command
- Eclipse显示空白符,如空格、制表符、换行符的方法
- 替换字符串中的空格
- 空格替换
- 2.替换空格
- vim 空格和换行的删除和替换
- 替换空格 4
- 替换空格
- 牛客网-剑指Offer-替换空格