zoukankan      html  css  js  c++  java
  • Eclipse 常用设置

    1,设置默认的全局JRE:
    Window->Preferences-> Java -> Installed JREs ,这样每次新建项目时,默认的JRE库即为选中的项。

    2,设置工作空间全局编码:
    设置UTF-8   Window->Preferences->General->Workspace 中Text file encoding 选择other并选UTF-8

    3,修改文件默认编码:
    Window -> Preferences -> General -> Content Types
    【注意是修改最下面的Default encoding】,在这里可以将html、properties和jsp文件的编码都改成UTF-8的。
    这样修改后,以后每次新建properties并保存时,就不会跳出一个对话框说你现在的编码是ISO-8859-1的提示了。

    4,修改特定文件的编码:
    Window -> Preferences -> MyEclipse -> Files and Editors -> JSP
    比如这里修改JSP的页面显示编码为UTF-8,那么每次新建一个jsp文件后,第一行的编码设置内容就会像这样所示:
    <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

    5,设置字体:
    Window -> Preferences -> General -> Appearance -> Colors and Fonts -> Basic -> Text font

    6,设置文件默认编辑器:
    Window -> Preferences -> General ->  Editors -> File Associations

    7,设置当鼠标移到文字上时的事件:这里选择快速显示注释。
    Window -> Preferences -> General ->  Editors -> Text Editors -> When mouse moved into hover.

    8,设置快捷键:
    Window -> Preferences -> General -> Keys
    输入要设置的动作的名称,比如这里输入“run java”进行过滤,然后在Binding选项中设置快捷键。
    这样以后每次要运行java程序时,只需要按 Alt+X 快捷键就可以了。

    9,禁用启动时不需要的插件:
    Window -> Preferences -> General -> StartUp and Shutdown
    比如Myeclipse Derby,老是在Server控制台占着茅坑不拉屎,看着蛋疼,先把它给治了。

    10,设置注册码:
    Window -> Preferences -> MyEclipse -> Subscription

    11,关闭自动更新:
    Myeclipse有时一打开就在Progress中无休止地更新,必须把它给做了。
    1. window --> preferences --> General --> Startup and Shutdown,
    去掉 "Automatic Updates Scheduler " 项前面的勾。
    2. Window --> Preferences --> Myeclipse Enterprise Workbench --> Maven4Myeclipse --> Maven --> "Download repository index updates on startup", 去掉前面的勾。
  • 相关阅读:
    Codeforces Round #649 (Div. 2) D. Ehab's Last Corollary
    Educational Codeforces Round 89 (Rated for Div. 2) E. Two Arrays
    Educational Codeforces Round 89 (Rated for Div. 2) D. Two Divisors
    Codeforces Round #647 (Div. 2) E. Johnny and Grandmaster
    Codeforces Round #647 (Div. 2) F. Johnny and Megan's Necklace
    Codeforces Round #648 (Div. 2) G. Secure Password
    Codeforces Round #646 (Div. 2) F. Rotating Substrings
    C++STL常见用法
    各类学习慕课(不定期更新
    高阶等差数列
  • 原文地址:https://www.cnblogs.com/suncms/p/2584374.html
Copyright © 2011-2022 走看看