Eclipse相关设置
2015-09-23 15:59
459 查看
eclipse 默认设置的换行长度, 格式化代码后,同一个方法里面参数也经常被,换行,非常难看。
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保存。
------------------------------------------
编码 general ->workspace
字体 general ->apprearance ->colors and fonts
行号 general ->editors ->text editors
提示 java ->editor ->content assist
--------------------------------------------
自定义类中的字段名都有前缀m,生成getter、setter时不想有m的设置方法
Prefefences->Java->Code Style-> 右边视图中选中“Fields” 点“Edit” 在“Prefix list”中填入“m”即可。
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保存。
------------------------------------------
编码 general ->workspace
字体 general ->apprearance ->colors and fonts
行号 general ->editors ->text editors
提示 java ->editor ->content assist
--------------------------------------------
自定义类中的字段名都有前缀m,生成getter、setter时不想有m的设置方法
Prefefences->Java->Code Style-> 右边视图中选中“Fields” 点“Edit” 在“Prefix list”中填入“m”即可。
相关文章推荐
- Springmvc+mybatis 问题总结(续ing)
- java学习笔记之WeakHashMap 、IdentityHashMap、EnumMap
- Java正则表达式入门
- javaEE__sevlet
- test5.21
- Java IO流
- C4.5决策树--Java
- Java Session
- 集合迭代删除元素
- [Java新手区] 【最权威!Eclipse快捷键大全】
- Java-Mail 发送邮件
- java 1:入门
- java内部类规则
- java系统学习(十一) --------输入与输出(I/O)
- struts2 jar包详解
- java系统学习(十一) --------输入与输出(I/O)
- java学习笔记集合框架Set集合
- Spring 邮件服务:Spring+Javamail+Spring SMTP Mail+Maven
- Java模式
- eclipse的web项目的jsp生成的servelet类在哪里