解析php中eclipse 用空格替换 tab键
2013-06-24 00:00
519 查看
本人用eclipse进行PHP项目开发,根据公司开发规范,要用4个空格替换掉tab键,在网上搜了好多,都不太全面,现在将详细的配置陈列如下:
首先进入首选项:窗口(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 会发现设置成功
相关文章推荐
- 解析php中eclipse 用空格替换 tab键
- Eclipse 4个空格替换Tab设置方法
- eclipse 用空格替换 tab键
- eclipse 用空格替换 tab键
- [Eclipse] - Eclipse空格替换tab
- 【技术贴】Eclipse||Myeclipse tab缩进转换为空格教程
- Eclipse设置Tab键为空格
- Eclipse中设置制表符(Tab)键按下时显示为空格的样式小点点
- eclipse中用空格(space)代替"制表符(tab)的设置
- 设置Eclipse中的tab键为4个空格的完整方法
- Eclipse设置软tab(用4个空格字符代替)及默认utf-8文件编码(unix)
- 设置Eclipse中的tab键为4个空格的完整方法
- Eclipse设置软tab(用4个空格字符代替)及默认utf-8文件编码(unix)
- Eclipse笔记-配置篇(tab插入空格,文件编码,Save Actions,代码提示等)
- 设置Eclipse中的tab键为4个空格
- sublime3用空格替换tab键的方法
- Eclipse设置软tab(用4个空格字符代替)及默认utf-8文件编码(unix)
- eclipse 中将tab键用4个空格表示
- 更改Zend Studio/Eclipse的制表Tab缩进为4个空格缩进
- 如何在Eclipse中显示空格(space)和制表符(tab)