当前位置: 代码迷 >> Eclipse >> MyEclipse适用操作谈【转】
  详细解决方案

MyEclipse适用操作谈【转】

热度:70   发布时间:2016-04-23 02:12:36.0
MyEclipse实用操作谈【转】
[/color]MyEclipse 
MyEclipse实用操作有哪些呢?让我们开始介绍吧:

[color=blue]MyEclipse实用操作之屏蔽对文件的错误校验


要屏蔽的文件——(右键)——MyEclipse——Exclude From Validation

MyEclipse实用操作之管理User Libraries

Window——Preferences——Java——Build Path——User Libraries

MyEclipse实用操作之设置提示间隔

Window——Preferences——Java——Editor——Content Assist——Auto-Activation

MyEclipse实用操作之设置JSP默认的charset

Window——Preferences——MyEclipse——Files and Editors——JSP——Creating files——Encoding

MyEclipse实用操作之重命名Web项目

◆F2——修改项目名

◆修改上下文路径


项目——(右键)——Properties——MyEclipse——Web——Context Root

MyEclipse实用操作之切换工作区

File——SwitchWorkspace——Other

MyEclipse实用操作之代码格式化


选中要格式化的代码——右键——(Source——)Format

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

MyEclipse实用操作之块注释

选中要注释的代码块——Ctrl+/

MyEclipse实用操作之提示标签、属性


Ctrl+Shift+<

MyEclipse实用操作之转到定义


F3

MyEclipse实用操作之切换工作空间

File——Switch Workspace——Other

MyEclipse实用操作之设置JSP字符集

Window——Preferences——MyEclipse Enterprise Workbench——Files and Editors——JSP——Creating files——Encoding

MyEclipse实用操作之重写


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

MyEclipse实用操作之关闭derby

Window——Preferences——General——Startup and shutdown

MyEclipse实用操作之设置doc路径

选中.jar——右键——Properties——Javadoc Location——Javadoc in archive——External file或Javadoc URL

MyEclipse实用操作之拼写检查设置

Window——Perferences——General——Editors——Text Editors——Spelling——Enable spell checking

Project——Clean

MyEclipse实用操作之代码片段管理

选中一段代码——右键——Add to Snippets


一、想把用代码形式打开jsp页面设置为默认,以免在jsp页面敲代码反应慢:
    Window->Preferences->General->Editors->FileAssociations->
    *.jsp->MyEclipse JSPEditor设置成Default,Default按钮就在右手侧。
二、设置Java代码样式:
    Window->Preferences->Java->CodeStyle->Formatter->Edit...->......
    Indentation(缩进)、Braces(花括号)、White Space(空格)、
    Blank Lines(空白行)、New Lines(新行)、Control Statements(控制语句)、
    Line Wrapping(自动换行)、Comments(注释)


MyEclipse实用操作我们就介绍到这里,希望对你有所帮助。
  相关解决方案