前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Eclipse常用配置

Eclipse常用配置

作者头像
WindCoder
发布2018-09-19 15:57:54
1.4K0
发布2018-09-19 15:57:54
举报
文章被收录于专栏:WindCoderWindCoder

前言

此为个人常用配置,不一定适用于所有人。

直接打开类文件/文件夹所在的本地目录

方案一

项目上右键->show in ->System Explorer

或者ALT+SHIFT +W ,在弹出的菜单中选择System Explorer 

enter description here
enter description here

方案二

配置一个External Tool

1、Run --》ExternalTools --》External Tools Configurations 

enter description here
enter description here

2、双击Program,新建一个Program。

3、设置新建的Program

代码语言:javascript
复制
location 里面填 :C:\WINDOWS\explorer.exe

Arguments 里面填: ${container_loc}

使用时点击以下图标即可 

enter description here
enter description here

设置编码

整个工作空间

修改Workspace encoding & 换行符

代码语言:javascript
复制
Window ->Preference->Genera-->Workspace

Text file encoding 设为 UTF-8,

new text file line delimiter 设为 Unix

enter description here
enter description here

Properties 文件

代码语言:javascript
复制
Window ->Preference->Genera-->Content Types-->Text -->Java Properties File

设置Default encoding,把下面的ISO-8859-1改为UTF-8,然后update,确认保存退出。

实际项目中,可能只配置Java Properties File,无法适用于Spring Properties File,此时需要单独配置一下其编码格式。

enter description here
enter description here

调整字体大小

控制台

控制台字体调整

代码语言:javascript
复制
Window -> Preferences -> General -> Appearance -> Colors and Fonts -> Basic -> Text Font -> Edit

调节主窗口字体大小。

代码语言:javascript
复制
Window -> Preferences -> General -> Appearance -> Colors and Fonts ->
Java -> Java Editor Text Font -> Edit

取消校验(提升Eclipse响应)

enter description here
enter description here

移除JSON文件红叉(旧)

以下为两种方案:

  1. 关闭校验 菜单Window - > Preferences 然后搜索 validation 关闭对应的校验。
  2. 关闭拼写检查 在eclipse下的Window--Preference输入spell,然后把第一个复选框“Enable spell checking“给去掉就可以了。

亦既:

代码语言:javascript
复制
Window--》 Preferrnces–》General–》Editors–》Text Editors–》spelling

,取消Enable spell checking选项

设置tab缩进

上面的是4空格缩进,下面是编辑在编辑窗口显示打印边距(换行参考线),非必选。 

enter description here
enter description here

xml 文件格式化(非必要)

enter description here
enter description here
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 前言
  • 直接打开类文件/文件夹所在的本地目录
    • 方案一
      • 方案二
      • 设置编码
        • 整个工作空间
          • Properties 文件
          • 调整字体大小
            • 控制台
              • 调节主窗口字体大小。
              • 取消校验(提升Eclipse响应)
                • 移除JSON文件红叉(旧)
                • 设置tab缩进
                • xml 文件格式化(非必要)
                领券
                问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档