我用的是myeclipse10.0做的优化,早起版本9、8.5也都大同小异
补充:
1. 控制台信息太多,程序跑完后只能保留最后的一部分之前的都找不到了?
(1)Eclipse中程序的输出现在能够捕捉到文件中而不是输出到控制台。这是在run->openRunDialog中的Common 标签页中的Standard input and output 下进行设置的。
(2) 可以 preference->run/debug->console
于是在启动时总是进入这个工作空间了,
这时可以在window->preferences->General->Workspaces->Startup and Shutdown->Prompt for workspace on startup, 选中即可.
3. eclipse中jar包关联源代码与取消关联
在Reference Libraries->xxx.jar->右键选择属性->java sourceAttachment->Location path 可与关联与取消关联
-------------------------------------------------------------
一、Myeclipse10修改字体
MyEclipse10是基于Eclipse3.7内核,但在Eclipse的Preferences->general-> Appearance->Colors and Fonts 中并没有找到Courier New字体,它采用的是Consolas字体,中文看着非常小非常别扭,在Windows7下,系统自带虽然有Courier New字体,但是并没有激活显示,需要手动激活,才能在软件中使用
激活方法如下:
在win7的控制面板->字体,找到Courier New,右键,显示。 Courier 常规 ,右键,显示。
window-->preferences-->搜索font-->Color and Font-->Basic-->Text Font-->Edit--> Courier New-->常规-->四号
二、myeclipse修改jsp、xml默认打开方式
window-->preferences-->General-->Editors-->File Associations-->选择File Type-->
Associated editors选择默认的打开方式(Default)
三、Myeclipse修改编译兼容级别_Compiler compliance Level
Window-->Preferences-->Java-->Compiler --> Compiler compliance Level-->1.6
四、修改Myeclipse编码方式:text+jsp
1. window-->preferences-->搜索JSP-->Myeclipse-->Files and Editors-->JSP-->encoding-->UTF-8
2. window-->preferences-->General-->Workspace-->Text file encoding-->Other-->UTF-8
五、myeclipse修改Jboss内存大小
myeclipse菜单栏:Preferences-->搜索Jboss-->Jboss7.X下-->JDK--Optional java VM arguments加入如下代码:
-Xms512m -Xmx1024m -XX:MaxNewSize=256m -XX:MaxPermSize=256m
validation有一堆,什么xml、jsp、jsf、js等等,我们没有必要全部都去自动校验一下,
只是需要的时候才会手工校验一 下,速度立马提升好几个档次
windows–>perferences–>myeclipse–>validation
把除了manual 下面的全部点掉,build下只留 classpath dependency Validator
windows–>perferences–>general–>validation->editors->Text Editors->spelling -->Enable spell checking
所以可以将一些不使用的模块禁止 加载启动。
Window > Preferences > General > Startup andy Shutdown 在这里列出的是MyEclipse启动时加载的模块
我这里只让它加载tomcat5 勾选 MyEclipse EASIE Tomcat 5 。
怎样才能知道哪些启动项有用呢?我现在把我知道的启动项用处说一下,还有很多不懂的,
希望大家懂的回复在下面 啊:
WTP :一个跟myeclipse差不多的东西,主要差别是 WTP 是免费的,如果使用myeclipse,这个可以取消
Mylyn:组队任务管理工具,类似于 CVS ,以任务为单位管理项目进度,没用到的可以取消
Derby:一种保存成 jar 形式的数据库,我没用到,取消
一大排以 MyEclipse EASIE 打头的启动项:myeclipse 支持的服务器,只选自己用的,其他取消,
比如我只选了 tomcat 。
十、加大JVM的非堆内存
打开 myeclipse.ini
-startup
../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
--launcher.library
../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731
-clean
-configuration
configuration
-vm
C:\Users\lenovo\AppData\Local\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll
-vmargs
-Xmx384m
-XX:MaxPermSize=384m
-XX:ReservedCodeCacheSize=96m
以上是我的myeclipse.ini,需要修改是 -Xmx,-XX:MaxPermSize,-XX:ReservedCodeCacheSize,
将这三项的值调大,但并不是越大越好,曾经在相同的条件下做过测试(内存2GB),-Xmx,-XX:MaxPermSize的值为384m时比512m时要快(视具体的计算机而定),
-Xmx,-XX:MaxPermSize 的值设为同样大小且两者之和不能超出你的计算机本身的内存大小
十一、myeclipse10加入svn插件
说到插件,myeclipse自8.X开始,插件安装就变得巨难用,通常最好还是用离线安装,在线安装很可能出问题,下面仅以SVN安装为例,其他诸如ADT15,Aptana等都可采用
1.首先下载SVN包:svn-1.6
2.解压SVN包,然后找到其中的两个文件夹:features 和 plugins
3.随意建一个文件夹(位置和名称自己定就好了,我的是E:\myEclipsePlugin\svn),然后把第二步的解压好的features 和 plugins放到这个文件夹下
4.找到myeclipse的安装目录,下面有一个configuration\org.eclipse.equinox.simpleconfigurator\bundles.info 文件。现在需要做的就是在该文件内添加的东西
5.添加的内容用下面的类生成:
- import java.io.File;
- import java.util.ArrayList;
- import java.util.List;
- /**
- * MyEclipse9 插件配置代码生成器
- */
- public class PluginConfigCreator
- {
- public PluginConfigCreator()
- {
- }
- public void print(String path)
- {
- List<String> list = getFileList(path);
- if (list == null)
- {
- return;
- }
- int length = list.size();
- for (int i = 0; i < length; i++)
- {
- String result = "";
- String thePath = getFormatPath(getString(list.get(i)));
- File file = new File(thePath);
- if (file.isDirectory())
- {
- String fileName = file.getName();
- if (fileName.indexOf("_") < 0)
- {
- print(thePath);
- continue;
- }
- String[] filenames = fileName.split("_");
- String filename1 = filenames[0];
- String filename2 = filenames[1];
- result = filename1 + "," + filename2 + ",file:/" + path + "/"
- + fileName + "\\,4,false";
- System.out.println(result);
- } else if (file.isFile())
- {
- String fileName = file.getName();
- if (fileName.indexOf("_") < 0)
- {
- continue;
- }
- int last = fileName.lastIndexOf("_");// 最后一个下划线的位置
- String filename1 = fileName.substring(0, last);
- String filename2 = fileName.substring(last + 1, fileName
- .length() - 4);
- result = filename1 + "," + filename2 + ",file:/" + path + "/"
- + fileName + ",4,false";
- System.out.println(result);
- }
- }
- }
- public List<String> getFileList(String path)
- {
- path = getFormatPath(path);
- path = path + "/";
- File filePath = new File(path);
- if (!filePath.isDirectory())
- {
- return null;
- }
- String[] filelist = filePath.list();
- List<String> filelistFilter = new ArrayList<String>();
- for (int i = 0; i < filelist.length; i++)
- {
- String tempfilename = getFormatPath(path + filelist[i]);
- filelistFilter.add(tempfilename);
- }
- return filelistFilter;
- }
- public String getString(Object object)
- {
- if (object == null)
- {
- return "";
- }
- return String.valueOf(object);
- }
- public String getFormatPath(String path)
- {
- path = path.replaceAll("\\\\", "/");
- path = path.replaceAll("//", "/");
- return path;
- }
- public static void main(String[] args)
- {
- /*你的SVN的features 和 plugins复制后放的目录*/
- String plugin = "F:\\MyEclipse10.0\\myEclipsePlugin\\svn";
- new PluginConfigCreator().print(plugin);
- }
- }
6.把以上生成的字符串(一大堆)添加到第四步bundles.info文件的后面,然后重启myeclipse即可。
相关推荐
myeclipse10.0优化及SVN安装配置
MyEclipse 10.0注册机破解详解,包含了 MyEclipse 10.0注册机及破解过程详解。
Myeclipse 10.0 破解 工具 就是稳
myeclipse10.0正式版中文汉化教程,汉化包,绿色文件
myeclipse 10.0 破解 注册机 测试绝对可用; 直接替换源文件 不用手动输入注册码,
myeclipse.10.0.更新发布].myeclipse-10.0-offline-installer-windows.part03 myeclipse.10.0.更新发布].myeclipse-10.0-offline-installer-windows.part03 myeclipse.10.0.更新发布].myeclipse-10.0-offline-...
直接点击下载,官方正式版!MyEclipse10.0最新发布!
Myeclipse10.0破解与汉化包
MyEclipse10.0注册码 可用
Myeclipse10.0下安卓开发环境搭建 文档
MyEclipse10.0 注册机 sn key
MyEclipse 10.0 序列号大全 和 我自己写的破解源代码全部共享,并且还使用7.5到以上的版本使用
MyEclipse10.0汉化和破解工具
里面有myeclipse10.0的破解补丁以及注册机,并附带有详细的破解说明步骤,包你成功破解
MyEclipse10.0破解文件和说明
本文件内容为MyEclipse10.0的破解过程详细图解
MyEclipse 破解文件+破解说明,亲测可用,里面有详细的步骤
myeclipse10.0的破解文件,下载完之后解压完,百度搜一下破解方法,不懂的去我主页联系我,我帮你破解,不谢
更新发布(破解更新).myeclipse10.0_key.gen 【新版更新】MyEclipse 10.0 正式版破解注册码 - 附详细操作及说明 适合于MyEclipse 10.0,具体看详细操作说明吧...... 另外,MyEclipse 9系列的破解及如何注册请看...
MyEclipse10.0,在网上找了好几个都不能用,好不容易找了个能用的,分享了。