---
title: "MyEclipse 相关有用设置 "
author: "a_bin"
date: "2012-03-18T14:02:16Z"
tags: []
categories: ["开源软件"]
slug: "myeclipse"
draft: false
lastmod: "2012-03-18T14:02:16Z"
id: 1456924
url: "https://a-bin.iteye.com/blog/1456924"
---

**1.Fonts 字体**

Windows -&gt; Preferences -&gt; General -&gt; Appearance -&gt; Colors and Fonts

-&gt; Java -&gt; Java editor text font

-&gt; Java -&gt; Properties File editor text font

-&gt; Structured Text Editor -&gt; Structured text editor text font

-&gt; Text Compare -&gt; Java compare text font

-&gt; Text Compare -&gt; Java properties file compare text font

-&gt; Text Compare -&gt; MANIFEST.MF compare text font

**2.Background 背景**

Windows -&gt; Preferences -&gt; General -&gt; Editors -&gt; Text Editors -&gt; Background color

**3.Content Assist 内容辅助**

Windows -&gt; Preferences -&gt;  General -&gt; Keys -&gt; Content Assist

**4.Formatter 代码格式化**

Windows -&gt; Preferences -&gt; Java -&gt; Code Style -&gt; Formatter

**5. JSP 默认编辑器**

Windows -&gt; Preferences -&gt; General -&gt; Editors -&gt; File Associations

在File Types文件类型列表，选中\*.jsp，在Associated Editors列表框中选中MyEclipse JSP Editor，后单击default按钮

**6.Tomcat 配置**

Windows -&gt; Preferences -&gt; Myeclipse Enterprise Workbench -&gt; Servers -&gt; Tomcat -&gt; Tomcat  6.x

选择Enable，Tomcat的根目录F:\\apache-tomcat-6.0.16

**7.Encoding 编码**

(1)将整个project设置编码UTF-8（UTF-8可以最大的支持国际化）

windows -&gt; Preferences -&gt; general -&gt; Workspace -&gt; Text file encoding -&gt; Other框中的Text file encoding改为UTF-8

(2)对java源文件编码设置为UTF-8

windows -&gt; Preferences -&gt; general -&gt; Content Types -&gt; Text，选择Java Source File，在下面的Default encoding输入框中输入UTF-8，点Update

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

Window -&gt; Preferences -&gt; MyEclipse Enterprise Workbench -&gt; Files and Editors -&gt; JSP，将"Encoding"选为"ISO10646/Unicode(UTF-8)

**8.JSP 去掉格式化时页面中的空行**

Window -&gt; Preferences -&gt; MyEclipse Enterprise Workbench -&gt; HTML -&gt; HTML Source 

勾选"Clear all blank lines"

**9.Update 关闭自动更新**

(1)Eclipse: 

Windows –&gt; Perferences–&gt; Install/Update -&gt; Automatic Updates，不勾选"Automatically find new updates and notify me" 

(2)Myeclipse: 

1)Windows –&gt; Perferences–&gt; MyEclipse Enterprise Workbench -&gt; Community Essentials，不勾选"Search for new features at startup" 

2)Windows –&gt; Perferences–&gt; MyEclipse Enterprise Workbench -&gt; Maven4MyEclipse，不勾选"Download repository index updates on startup" 

**10.Startup 关闭不需要的启动项**

MyEclipse:Windows –&gt; Perferences–&gt; General–&gt; Startup and Shutdown

(1) Tomcat6: 必备的...   
(2) 内存监视器: 可以查看Myeclipse的使用内存, 我喜欢这工具(在菜单Myeclipse - Utilities - Show Heap Status打开)   
(3) JSP Debug工具, 其实我也没用过, 怕有一天用到...   
(4) 文件创建向导(个人经常用到)   
(5) 向后兼容的意思吧, 怕有一天会用到, 但其实很少用, 可去掉   
(6) 透视图, 应该可以去掉吧...