1、代码模板配置位置:Window->Preference->Java->Code Style->Code Template 依次展开 Comments 节点。
2、Myeclipse安装后编码默认是GB18030,一般推荐用UTF-8。
设置全局编码:Window-->Preferences-->General-->Workspace-->Text file encoding。
局部编码设置:文件右键-->Properties-->Resource-->Text file encoding。
3、MyEclipse设置JSP页面默认编码方式:Windows-Preferences-MyEclipse-Files & Editors-JSP-encoding:设置为ISO10646/Unicode(UTF-8) 。
4、拼写检查:直接查找关键字spell。
5、代码提示等:Windows->Preferences->java->Editor->Content Assist 或者直接输入过滤条件Content Assist。
6、softTab:Windows->Preferences->java->Code Style->Formatter->Active profile->Edit->General Settings 设置tab policy为Spaces only,Tab size建议设置为4,Indentation也设置为4。
7、其他文件内容的缩进设置:Windows →Preferences→Myeclipse→Files
and Editors,在每种文件类型的XXX Source节点下可以设置indentation的值。8、Package Explorer的背景颜色使用操作系统外观设置中的【窗口颜色】,所以不能在Preferences中单独更改。
本文介绍了MyEclipse的多项配置技巧,包括代码模板、文件编码、JSP页面编码、拼写检查、代码提示、Tab设置及文件内容缩进等。通过这些设置可以提升开发效率并改善代码质量。
2万+

被折叠的 条评论
为什么被折叠?



