eclipse 经典代码样式配置

 时间:2026-04-22 21:13:21

1、打开eclipse,进入菜单栏‘窗口’下的首选项设置,英文是‘preferences’。

2、进入首选项后,进入如图,相应位置。

eclipse 经典代码样式配置

3、进入后,在右侧会出现‘Syntax coloring’相应设置窗口,如图,在Java下拉菜单中依次点击进行相关设置。

eclipse 经典代码样式配置

1、首先对‘Annotations’注释,进行如图配置,并点确定。 

eclipse 经典代码样式配置

2、对‘Brackets’符号,进行如图配置,并点确定。

eclipse 经典代码样式配置

3、对‘Classes’类名及‘Deprecated members’弃用的成员,进行如图配置,并点确定。

eclipse 经典代码样式配置

eclipse 经典代码样式配置

4、对‘Enums’枚举及‘Fields’变量,进行如图配置,并点确定。

eclipse 经典代码样式配置

eclipse 经典代码样式配置

5、对‘ Keyword 'return'’return关键字及‘Keyword excluding 'return' ’其他关键字,进行如图配置,并点确定。

eclipse 经典代码样式配置

eclipse 经典代码样式配置

6、对‘ Method declarations’方法定义及‘Methods ’方法,进行如图配置,并点确定。

eclipse 经典代码样式配置

eclipse 经典代码样式配置

7、对‘ Others’其他及‘Operators’运算符,进行如图配置,并点确定。

eclipse 经典代码样式配置

eclipse 经典代码样式配置

8、对‘ Static fields’静态变量及‘Strings’字符串,进行如图配置,并点确定。

eclipse 经典代码样式配置

eclipse 经典代码样式配置

9、然后如图,点击应用并确认。

eclipse 经典代码样式配置

  • 怎样处理jsp登录失败返回后图片无法加载问题?
  • 怎么在eclipse上开发Golang
  • 解决win10使用JTAG 编程器无法下载
  • web项目myeclipse或者eclipse输出大量debug信息
  • jquery怎么向style里添加属性
  • 热门搜索
    秦可卿怎么死的 东南大学成贤学院怎么样 怎么设计logo 违章扣12分怎么处理 脚底痛是怎么回事 失业金怎么算 肚子大该怎么减肥 替米沙坦片怎么样 掉头发怎么治疗 新鲜石斛怎么吃