eclipse 配置

1. windows=》preferences=》general=》editors=》text editors  =》勾选 “insert spaces for tabs”

2. Java:windows=》preferences=》Java =》 Code Style =》 Formatter =》点击右边的Active profile 的Edit =》Indentation =》Tab Policy 选为 Spaces Only,然后下面的Indentation size 和 Tab size 都设置成你要的空格数即可!一般是4个空格!!

3. JavaScript :windows=》preferences=》JavaScript =》 之后的步骤与Java一样

4. C/C++ :windows=》preferences=》C/C++ =》 之后的步骤与Java一样

5. PHP:windows=》preferences=》PHP =》Code Style =》 Formatter =》Tab Policy 选为 Spaces ,Indentation size填4

6.Html :windows=》preferences=》Web =》HTML Files =》Editors =》选择“Indent using spaces”,Indentation size填4

7.XML :windows=》preferences=》XML =》XML Files =》之后的步骤与Html 一样

有些人可能想空格,用小圆点代替,方法: windows=》preferences=》general=》editors =》text editors=》选中“Show whitespace characters”


配置eclipse 格式化默认长度:

Window->Preferences->Java->Code Style->Formatter->Edit ->Line Wrapping->Maximum line width:默认80

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值