`

Eclipse技巧

    博客分类:
  • Java
 
阅读更多

设置工作空间的项目编码, 防止出现乱码
    Window - Preferences - General - Workspace
    将"Text file encoding"选为"Other" - "UTF-8"
    改变现有项目的编码的步骤: 右击项目属性, 选择"Text file encoding"的编码

 

防止出现 Unable to install breakpoint in

--原因:尝试加入断点时进行行号检查,无法定位行号
--解决:
尝试取消勾选首选项中的复选框
Window > Preferences > Java > Debug > Warn when unable to install breakpoint due to missing the line number attributes
https://www.jianshu.com/p/6d4175f17557

作者:zndo
链接:https://www.jianshu.com/p/6d4175f17557
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


设置其它文件的编码
    Window -> Preferences -> General -> Content Types
    将需要设置的文件设置编码, 最好统一设为UTF-8
    设置后, 如Javascript文件可正常显示中文

去掉格式化JSP时页面中的空行
    Window -> Preferences -> MyEclipse -> HTML -> HTML Source
    勾选"Clear all blank lines"

高亮类中同一引用的使用位置
    Window -> Perferences -> General - > Editors -> TextEditors -> Annotations
    选择"Occurrences",勾引"Text as" -> "Highlighted"(块高亮)或"Squiggles"(虚线)

Link with Editor
    打开类后, 自动在包管理器这里显示类的位置 
    

取消拼写错误检查
    我爱故意写错单词, 不需要系统帮我检查
    Windows –> perferences –> General –> Editors-> Text Editors -> Spelling
    去掉"Enable spell checking"勾选

关闭不需要的启动项
    MyEclipse:
    Windows –> Perferences–> General–> Startup and Shutdown

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

    其实就只用选择Tomcat6

关闭自动更新
    1, Eclipse:
        Windows –> Perferences–> Install/Update -> Automatic Updates
        不勾选"Automatically find new updates and notify me"

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics