修改Eclipse格式化代默认长度
2016-06-15 10:00
323 查看
eclipse 默认设置的换行长度为80, 格式化代码后,同一个方法里面参数也经常被,换行,非常难看
1.Java代码打开Eclipse的Window菜单,然后
Preferences->Java->Code Style->Formatter->Edit ->Line Wrapping->Maximum line width:默认80
加个0,改成800就行了。
2.CSS代码
Window->Preferences->Web->CSS Files->Editor->Line width:默认为72
加个0,改为720保存
3.Html代码
Window->Preferences->Web->HTML Files->Editor->Line width:默认为72加个0,改为720保存
4.JSP代码
Window->Preferences->Web->JSP Files->Editor->Line width:默认为72
加个0,改为720保存
1.Java代码打开Eclipse的Window菜单,然后
Preferences->Java->Code Style->Formatter->Edit ->Line Wrapping->Maximum line width:默认80
加个0,改成800就行了。
2.CSS代码
Window->Preferences->Web->CSS Files->Editor->Line width:默认为72
加个0,改为720保存
3.Html代码
Window->Preferences->Web->HTML Files->Editor->Line width:默认为72加个0,改为720保存
4.JSP代码
Window->Preferences->Web->JSP Files->Editor->Line width:默认为72
加个0,改为720保存
相关文章推荐
- 疯狂JAVA讲义笔记--第一章
- 深入理解java异常处理机制
- Reverse Integer - Javacript
- java提高之匿名内部类
- eclipse 集成fingbug An internal error occurred during:
- 7个改变世界的Java项目
- JAVA--冒泡排序、选择排序
- eclipse中xml文件报错异常处理
- 分享一个html解析java lib
- Struts2学习第二天——获取参数与数据校验
- Eclipse 快捷键使用
- ubuntu下给eclipse安装svn插件
- JDK环境变量配置
- java String 方法备忘
- 使用MyBatis(二)使用java注解查询单行数据
- JMS学习(4):--Spring和ActiveMQ整合的完整实例
- 两种java文件上传实例讲解
- web service开发时,wsdl2java 客户端代码的生成
- Java导入证书失败Keystore was tampered with, or password was incorrect
- 如何在Eclipse下查看JDK源代码