您的位置:首页 > 编程语言 > Java开发

My Eclipse常用设置和操作方法

2015-05-15 14:38 260 查看
MyEclipse 常用设置和操作方法

设置 myeclipse 中.properties 文件的编码方式

打开 Window ->Perferences ->General ->Editors ->Context Types

或者:

Window ->Perferences ->General ->Context Types 展开右边的 Text 节点,选中 Java Properties File。

把下面的 Default Character Set 的值:ISO-8859-1 改成 UTF-8 或者你希望的字符编码类型,然后点击 update 按钮.最后确定.

实用操作之屏蔽对文件的错误校验 myeclipse Project Capabilites(如 Hibernate,Spring 中自带包冲突时要去掉 如 Hibernate 下的 xerces.jar)

Window-->Preferences-->MyEclipse-->Project Capabilities-->下面对应的 Libraries 下面对应的 要屏蔽的文件——(右键)——MyEclipse——Exclude From Validation

实用操作之管理 User Libraries Window——Preferences——Java——Build Path——User Libraries

实用操作之设置提示间隔 Window——Preferences——Java——Editor——Content Assist——Auto-Activation

实用操作之设置 JSP 默认的 charset Window——Preferences——MyEclipse——Files and Editors——JSP——Creating files——Encoding

实用操作之重命名 Web 项目 F2——修改项目名

修改上下文路径 项目——(右键)——Properties——MyEclipse——Web——Context Root

实用操作之切换工作区 File——SwitchWorkspace——Other

实用操作之代码格式化 选中要格式化的代码——右键——(Source——)Format

选中要格式化的代码——Ctrl+Shift+F

实用操作之块注释 选中要注释的代码块——Ctrl+/

实用操作之提示标签、属性 实用操作之提示标签、 Ctrl+Shift+<

实用操作之转到定义 F3

实用操作之切换工作空间 File——Switch Workspace——Other

实用操作之设置 JSP 字符集 Window——Preferences——MyEclipse Enterprise Workbench——Files and Editors——JSP——Creating files——Encoding

实用操作之重写 在要重写的方法所在的类体中,右键——Source——Override/Implement Methods

实用操作之关闭 derby Window——Preferences——General——Startup and shutdown

实用操作之设置 doc 路径 选中.jar——右键——Properties——Javadoc Location——Javadoc in archive——External file 或 Javadoc URL

实用操作之拼写检查设置 Window——Perferences——General——Editors——Text Editors——Spelling——Enable spell checking Project——Clean

实用操作之代码片段管理 选中一段代码——右键——Add to Snippets

自动生成注释 通过菜单 Window->Preference 打开参数设置面板,然后选择:

1.Java -> Code Style -> Code Templates

2.在右侧选择 Comments,将其中的 Types 项,然后选右边的"Edit",进入编辑模式,将 @author ${user} 中的${user}改成你自己的名字即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: