zoukankan      html  css  js  c++  java
  • 下载、配置全新的eclipse

    1、https://www.eclipse.org/downloads/

    2、确保安装配置了JDK,打开eclipse-inst-win64.exe,让eclipse installer程序UPDATE一下。

    3、重启后选择...For Java EE Developers,选择Latest Release(Oxygen)(2017/07/16时间点)

    4、开启eclispe,指定一个全新的workspace

    5、workspace的JRE

    菜单栏Window - Preferences - Java - Installed JREs 确保是自己下载配置的JDK

    6、字体

    Preferences - General - Appearance - Colors and Fonts >> Basic - Text Font 代表的是代码编辑区的字体,看着改,Deolin的选择是YaHei Consolas Hybrid 常规 14

    7、workspace的编码

    Preferences - General - Workspace >> Text file encoding 改成UTF-8

    将来创建项目时,最好把项目的编码设置成GBK,否则控制台中文可能会乱码

    Preferences - General - Workspace >> New text file line delimiter 确保是Windows

    8、JSP的编码

    Preferences - Web - JSP Files >> Encoding 改成UTF-8

    9、Maven

    修改%MAVEN%confsettings.xml文件

    <?xml version="1.0" encoding="UTF-8"?>
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
            http://maven.apache.org/xsd/settings-1.0.0.xsd">
        <localRepository>希望的本地仓库路径,以“.m2
    epository”结尾</localRepository>
        <mirrors>  
            <mirror>  
                <id>alimaven</id>  
                <name>aliyun maven</name>  
                <url>http://maven.aliyun.com/nexus/content/groups/public/</url>  
                <mirrorOf>central</mirrorOf>         
            </mirror>  
        </mirrors>  
    </settings>

    Preferences - Maven - Installations >> ADD本地的maven客户端,并打勾

    Preferences - Maven - User Settings >> User Settings指向%MAVEN%confsettings.xml,确保Local Repository与希望的本地仓库路径中一致

    10、自动补全

    Preferences - Java - Editor - Content Assist >> Auto Activation - Auto activation triggers for Java: 改成

    .abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

    Preferences - Web - HTML Files - Editor - Content Assist >> Auto Activation - Prompt when these characters are inserted: 改成

    <=.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

    11、启动项

    Preferences - General - Startup and Shutdown >> Plug-ins activated on startup: 里面的勾全部去掉。(这一步是为了启动提速,暂时还未发现不良影响)

    12、关闭拼写检查

    Preferences - General - Editors - Text Editors - Spelling >> Enable spell checking 勾去掉

    13、关闭自动更新检查

    Preferences - Install/Update - Automatic Updates >> 去掉第一项的勾选,禁用全部

    14、关闭验证

    Preferences - Validation >> Disable All

    15、自动去除行末空格

    Preferences - Java - Editors - Save Actions >> Additional acitons 打勾 >> Configure... >> Remove trailing whitespace 打勾

    16、Tab缩进为4个空格

    Preferences - Java - Code Style - Formatter >> Edit >> Indentation 的 Tab policy: 改成 Spaces only

    17、保存配置

    菜单栏File - Export >> General - Preferences 确保Export all,选择路径,导出

    Deolin的个性化

    18、代码中的斜体字有时候看起来很不舒服,比如

    HTML和XML等里面的属性值 

    Java里面的静态变量和枚举元素

    CSS里面的值

    等。

    Preferences >> 搜索Syntax >> 以下项目 - Editor - Syntax Coloring >> Preview (Sample text) 中选择斜体文字,把它们的Italic勾去掉

    Java

    Web - CSS Files

    Web - HTML Files

    Web - JSP Files

    XML - XML Files 

    19、Help - Eclipse Marketplace >> “Darkest Dark Theme 2017 CI 7”

    20、Darkest主题下,Java的alt+/窗口看上去有点不舒服

    前略 - Colors and Fonts >> Basic下Content开头的两个属性

    21、选中的代码呈现高对比的效果

    Preferences - General - Editors - Text Editors >>  Selection foreground color 改成黑色,Selection background color 改成白色

     

    22、代码高亮

    Preferences - General - Editors - Text Editors - Annotations >>

    没必要光标在任何文字上都高亮显示

    Preferences - Java - Editor - Mark Occurrences >> 只勾选Non-constant fields、Local variables、Method exits和最后一项Keep....

    23、HTML、XML等的配对标签

    Window - Preferences - General - Editors - Text Editors - Annotations >> Matching Tags

    24、更多的偏好配置会继续补充

  • 相关阅读:
    [arm]虚拟机,2440开发板,主机三者互通
    Linux下的lds链接脚本简介(四)
    Linux下的lds链接脚本简介(三)
    Linux下的lds链接脚本简介(二)
    Linux下的lds链接脚本简介(一)
    程序员面试资源大收集
    Source Insight 3.50.0065使用详解
    DNW烧写FL2440 NAND Flash分区
    php isset()与empty()的使用
    JSON.parse()和JSON.stringify()的区别
  • 原文地址:https://www.cnblogs.com/deolin/p/7189514.html
Copyright © 2011-2022 走看看