Eclipse基础设置



Eclipse基础设置

每次重装Eclipse都要重新设置,今天写下来,以后供自己参考,也供大家参考。


1. 字体设置

在这里插入图片描述
在这里插入图片描述
Window --> Preferences --> General --> Appearance --> Text Font


2. 更改工作空间及文件类型的默认编码为UTF-8

在这里插入图片描述
Window --> Preferences --> General --> Workspace --> Other --> UTF-8 --> Apply and Close
在这里插入图片描述
Window --> General --> Content Type --> Text --> Java Source File(可自行选择) --> Default encoding --> UTF-8 --> Apply and Close


3. 设置Tab为4个空格

在这里插入图片描述
Window --> Preferences --> General --> Editors --> Text Editors --> …(如图)
在这里插入图片描述
在这里插入图片描述
Window --> Preferences --> Java --> Code Style --> Formatter --> Edit… --> Indentation --> Spaces only --> 发现Apply点击不了 --> 随便更改Profile name --> Apply --> Apply and Close


4,设置背景颜色为护眼的豆沙色或更改主题

在这里插入图片描述
Window --> Preferences --> General --> Editors --> Text Editors --> Background color --> 取消System Default --> Color --> 规定自定义颜色 --> 调整数值(如图) --> 添加到自定义颜色 --> 确定 --> Apply and close

在这里插入图片描述
Window --> Preferences --> General --> Appearance --> Theme --> 在下拉列表框中选择自己喜欢的主题背景


5. 代码自动提示

在这里插入图片描述
Window --> Preferences --> Java --> Editor --> Content Assist --> Auto activation delay 设置为200 (键盘输入到代码提示出现的时间,单位为毫秒) --> Auto activation triggers for Java 将26个英文字母大小写和.都输入(输入后会有提示的字符) --> Apply and Close


6. 窗体布局重置

有时候把窗体弄得很乱,直接重置
在这里插入图片描述
Window --> Perspective --> Reset Perspective…


7. 禁止更新

在这里插入图片描述
Window --> Preferences --> Install/Update --> Automatic Update -->取消 Automatically find new updates and notify me


8. 显示行号

在这里插入图片描述
Windows–>Preference–>General–>Appearance–>Editors–>Text Editors–>show line numbers

  • 4
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值