zoukankan      html  css  js  c++  java
  • Myeclipse学习总结(1)——Myeclipse优化配置

    作为企业级开发最流行的工具,用Myeclipse开发java web程序无疑是最合适的,java web前端采用jsp来显示,myeclipse默认打开jsp的视图有卡顿的现象,那么如何更改jsp默认的打开方式,让我们可以进行更快速的jsp开发呢?

    简单介绍下Myeclipse吧!MyEclipse企业级工作平台(MyEclipse Enterprise Workbench ,简称MyEclipse)是对EclipseIDE的扩展,利用它我们可以在数据库和JavaEE的开发、发布以及应用程序服务器的整合方面极大的提高工作效率。它是功能丰富的JavaEE集成开发环境,包括了完备的编码、调试、测试和发布功能,完整支持HTML,Struts,JSP,CSS,Javascript,Spring,SQL,Hibernate.

    随着版本的更新,myeclipse的功能越来越强大,体积也越来越大,大家应该可以感觉到每次打开myeclipse都会有卡的感觉,那么如何设置最佳的myeclipse呢,(eclipse也一样设置哦),myEclipse8.0以上的最佳设置,让你的myEclipse不再卡。

    工具/原料

    • Myeclipse集成开发环境(这里以Myeclipse8.5说明)

    步骤/方法

    1. myeclipse文本编辑器如何字体设置

      windows-preferences-general-appearance-colors and fonts-basic-text font

      取消Myeclipse的自动文件验证(卡傻的原因)

      1.Windows –> Perferences –>Myeclipse –> Validation,保留manual(手动)部分,build下只留"classpath dependency Validator" 。

      2.手动验证: 右键文件 -> Myeclipse -> Run Validation 。

    2. 设置工作空间的项目编码, 防止出现乱码:
      1.首先打开Window - Preferences - General - Workspace ;

      2.将"Text file encoding"选为"Other" - "UTF-8"。

      3.改变现有项目的编码的步骤: 右击项目属性, 选择"Text file encoding"。


    3. 设置其它文件的编码:
      1:首先进去Window -> Preferences -> General -> Content Types;
      2:将需要设置的文件设置编码, 最好统一设为UTF-8 ;
      3:设置后, 如Javascript文件可正常显示中文;


    4. 设置创建JSP页面时,将JSP的默认编码设为UTF-8:
      1.Window -> Preferences -> MyEclipse -> Files and Editors -> JSP。
      2.将"Encoding"选为"ISO10646/Unicode(UTF-8)。


    5. 去掉格式化JSP时页面中的空行:
      1.Window -> Preferences -> MyEclipse -> HTML -> HTML Source;
      2.勾选"Clear all blank lines"。

    6. 增强Eclipse的自动代码提示功能:
      1.首先进入Window -> Preferences -> Java -> Editor -> Content Assist。
      2.将"Auto Activation triggers for java"设置为".abc"(默认是"."), 点"Apply"应用。
      3.导出目前的Eclipse配置文件: File -> Export -> General -> Perferences, 选择保存路径, 保存得到*.epf文件。
      4.用文本编辑器打开刚才保存的*.epf文件, 搜索".abc",将".abc"部分改为".abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ(," (以上为自动提示的触发字符,根据个人习惯设置), 保存此配置文件(个人觉得不太好用,容易出错)。
      5.导入此配置文件: File -> import -> General -> Perferences, 导入修改后的配置文件.第一个选项为反应时间,可设为100左右(默认200)。

      【小技巧】默认下, 只有按"."或"Alt + /"才出现代码提示功能, 不够强大, 作小小设置, 可将代码提示功能像VS的一样方便 。


    7. 高亮类中同一引用的使用位置:
      1.首先进入Window -> Perferences -> General - > Editors -> TextEditors -> Annotations。
      2.选择"Occurrences",勾引"Text as" -> "Highlighted"(块高亮)或"Squiggles"(虚线)。


    8. Link with Editor此选项的意思是:打开类后, 自动在包管理器这里显示类的位置。

    9. 关闭自动更新:
      1.Eclipse:首先进入Windows –> Perferences–> Install/Update -> Automatic Updates,不要勾选"Automatically find new updates and notify me"。
      2.Myeclipse:
      1)首先Windows –> Perferences–> MyEclipse... -> Community Essentials&nbsp,不要勾选"Search for new features at startup"。
      2)Windows –> Perferences–> MyEclipse... -> Maven4MyEclipse,不要勾选"Download repository index updates on startup" 。

    10. 取消拼写错误检查:
      【小提示】:我爱故意写错单词, 不需要系统帮我检查。

      1.首先进入Windows –> perferences –> General –> Editors-> Text Editors -> Spelling。
      2.去掉"Enable spell checking"勾选。

    11. 关闭不需要的启动项
      在MyEclipse编译器下: 首先进入Windows –> Perferences–> General–> Startup and Shutdown 。
      我只保留了如下项:顺序下来
      1.Tomcat6: 必备的...
      2.内存监视器: 可以查看Myeclipse的使用内存, 我喜欢这工具(在菜单Myeclipse - Utilities - Show Heap Status打开)
      3.JSP Debug工具, 其实我也没用过, 怕有一天用到...
      4.文件创建向导(个人经常用到)
      5.向后兼容的意思吧, 怕有一天会用到, 但其实很少用, 可去掉
      6.透视图, 应该可以去掉吧...
      【小提示】其实就只用选择Tomcat6。

    注意事项

    • 给MyEclipse 8.x Stable (8.0 GA) 添加启动画面:

      在myeclipse.ini配置文件追加上一行代码:-Dosgi.splashLocation=../Common/plugins/com.genuitec.myeclipse.product8_8.0.0.me200911192201/splash.bmp

    • 让Eclipse拖着myeclipse狂飚

      1.取消自动validationvalidation有一堆,什么xml、jsp、jsf、js等等,我们没有必要全部都去自动校验一下,只是需要的时候才会手工校验一下,速度立马提升好几个档次

      2.取消方法:windows-->perferences-->myeclipse-->validation除开Manual下面的复选框全部选中之外,其他全部不选

      3.手工验证方法:在要验证的文件上,单击鼠标右键-->myeclipse-->run validation。

    • MyEclipse耗内存的注意事项:

      1.老是弹出Quick update error这个问题的解决办法是关闭自动更新Windows > Preferences > MyEclipse Enterprise Workbench > Community Essentials,把选项 "Search for new features on startup"的前勾去掉即可。

      2.关闭updating indexesWindow > Preferences > Myeclipse Enterprise Workbench > Maven4Myeclipse > Maven>禁用Downloadrepository index updates on startup。

      3.关闭MyEclipse的自动validationwindows-->perferences-->myeclipse-->validation将Build下全部勾取消如果你需要验证某个文件的时候,我们可以单独去验证它。方法是,在需要验证的文件上( 右键 ->MyEclipse -> Run Validation。

      4.启动优化,关闭不需要使用的模块Window > Preferences > General > Startup andy Shutdown 在这里列出的是MyEclipse启动时加载的模块我这里只让它加载tomcat5 勾选 MyEclipse EASIE Tomcat 5。

      5.在myeclipse 7.0版本以上时,window-preferences-MyEclipse Enterprise Work-Maven4MyEclipse-Maven, 取消选中Downloadrepository index updates on startup。

      6.关闭更新调度:window --> preferences --> General --> Startup and Shutdown --> AutomaticUpdates Scheduler,去掉前面的勾选。

    • 此系列Myeclipse文章为从事java开发人员适用,为作者平时开发过程所总结出来的经验,如果你喜欢java开发,请继续关注本系列文档。

  • 相关阅读:
    184. Department Highest Salary【leetcode】sql,join on
    181. Employees Earning More Than Their Managers【leetcode】,sql,inner join ,where
    178. Rank Scores【leetcode】,sql
    177. Nth Highest Salary【leetcode】,第n高数值,sql,limit,offset
    176. Second Highest Salary【取表中第二高的值】,sql,limit,offset
    118. Pascal's Triangle【LeetCode】,java,算法,杨辉三角
    204. Count Primes【leetcode】java,算法,质数
    202. Happy Number【leetcode】java,hashSet,算法
    41. First Missing Positive【leetcode】寻找第一个丢失的整数,java,算法
    删除
  • 原文地址:https://www.cnblogs.com/zhanghaiyang/p/7213645.html
Copyright © 2011-2022 走看看