MyEclipse常用设置

来源:互联网 发布:海岛奇兵小怪升级数据 编辑:程序博客网 时间:2024/04/27 05:29

MyEclipse常用设置

MyEclipse 选择 Windows->Preperences ->General ->keys

找到 word completion的快捷键把原alt+/删掉!//必须

把Content Assist 的快捷键 改成alt+/或者你想改的其他快捷键

 

MyEclipse编码设置

Myeclipse安装后编码默认是GB18030,一般推荐用UTF-8。如果在导入项目后发现乱码现象,那是编码设置设置不对。

全局编码设置的方法:ToolBar-->Window-->Preferences-->General-->Workspace-->Textfile encoding,设置合适的编码。

局部编码设置:在源码按右键-->General-->Editors-->TestEditors-->Spelling-->Encoding,这里是设置单个文件的编码。

推荐还是使用全局编码设置。

 

MyEclipse设置JSP页面默认编码方式:

windows(窗口)-Preferences(首选项)-MyEclipse-Files &Editors-JSP-右侧encoding:设置为ISO10646/Unicode(UTF-8)

 

MyEclipse在Java文件中设置作者、日期等说明:

windows(窗口)-Preferences(首选项)-Java-Code Style(代码样式)-CodeTemplates(代码模版)-右侧Comments(注释)-选择Types(类型)-点击edit(编辑)-输入如下信息

点击OK(确定)-选中左侧的代码样式-选择右侧复选框(Automatically add Comments for newMethods and types)(自动为新方法和类型添加注释)-点击Apply(应用)-点击OK(确定)

eclipse里面有一个spellcheck的开关,把它关了。具体操作windows->preference->输入spell

自动提示:具体操作windows->preference->输入contentassist   选择Java->editor->content assist

Auto activation triggers forJava:后面输入.abcdefghijklmnopqrstuvwxyz 确定

然后导出


修改字体:window-preferences-general-appearance-color and fonts--basic-text font-change

 

任意键代码提示:

打开 MyEclipse 8.5 -> Window-> Perferences -> Java -> Editor -> ContentAssist,在右边最下面一栏找到 auto-Activation ,下面有三个选项,找到第二个“Auto activationtriggers for Java:”选项 输入abcdefghijklmnopqrstuvwxyz.< 确定