首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

myeclipse惯用设置

2012-07-27 
myeclipse常用设置改变现有项目的编码的步骤: 右击项目属性, 选择Text file encoding的编码设置其它文件

myeclipse常用设置
改变现有项目的编码的步骤: 右击项目属性, 选择"Text file encoding"的编码

设置其它文件的编码
Window -> Preferences -> General -> Content Types
将需要设置的文件设置编码, 最好统一设为UTF-8
设置后, 如Javascript文件可正常显示中文

设置创建JSP页面时,将JSP的默认编码设为UTF-8

Window -> Preferences -> MyEclipse -> Files and Editors -> JSP
将"Encoding"选为"ISO10646/Unicode(UTF-8)

去掉格式化JSP时页面中的空行
Window -> Preferences -> MyEclipse -> HTML -> HTML Source
勾选"Clear all blank lines"

增强Eclipse的自动代码提示功能
默认下, 只有按"."或"Alt + /"才出现代码提示功能, 不够强大, 作小小设置, 可将代码提示功能像VS的一样方便
1. Window -> Preferences -> Java -> Editor -> Content Assist
2. 将"Auto Activation triggers for java"设置为".abc"(默认是"."), 点"Apply"应用
3. 导出目前的Eclipse配置文件: File -> Export -> General -> Perference根据个人习惯设置), 保存此配置文件(个人觉得不太好用,容易出错)
5. 导入此配置文件: File -> import -> General -> Perference
Link with Editor
打开类后, 自动在包管理器这里显示类的位置myeclipse惯用设置

取消Myeclipse的自动文件验证(卡傻的原因)
Windows –> Perferences –>Myeclipse –> Validation
保留manual(手动)部分,build下只留"classpath dependency Validator"

手动验证: 右键文件 -> Myeclipse -> Run Validation

取消拼写错误检查
我爱故意写错单词, 不需要系统帮我检查
Wmyeclipse惯用设置
顺序下来:
1, Tomcat6: 必备的...
2, 内存监视器: 可以查看Myeclipse的使用内存, 我喜欢这工具(在菜单Myeclipse - Utilities - Show Heap Status打开)
3, JSP Debug工具, 其实我也没用过, 怕有一天用到...
4, 文件创建向导(个人经常用到)
5, 向后兼容的意思吧, 怕有一天会用到, 但其实很少用, 可去掉
6, 透视图, 应该可以去掉吧...

其实就只用选择Tomcat6

关闭自动更新
1, Eclipse:
Windows –> Perferences–> Install/Update -> Automatic Updates
不勾选"Automatically find new updates and notify me"

2, Myeclipse:
1)Windows –> Perferences–> MyEclipse... -> Community Essentials
&nb sp; 不勾选"Search for new features at startup"
2)Windows –> Perferences–> MyEclipse... -> Maven4MyEclipse
不勾选"Download repository index updates on startup"

热点排行