源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

解析php中eclipse 用空格替换 tab键

  • 时间:2020-09-18 14:29 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:解析php中eclipse 用空格替换 tab键
本人用eclipse进行PHP项目开发,根据公司开发规范,要用4个空格替换掉tab键,在网上搜了好多,都不太全面,现在将详细的配置陈列如下: [b]首先进入首选项:窗口(windows)->首选项(preferences...) [/b]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个空格替换,解决办法 [b]进入:[/b]windows=》preferences=》phpeclipse=》php=》formatter =>style 看选项 “indentation is represented by a tab” 是否选中 (默认选中) ,如果选中,则不选该选项,如果没有选中,则选中该选项 ,重启eclipse  会发现设置成功
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部