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里添加属性
  • 热门搜索
    三亚住宿攻略 龙云简介 松下电饭煲怎么样 红烧鸭子的家常做法 冬虫夏草怎么食用 老中医减肥茶 妻管严攻略 崆峒山旅游攻略 苦丁茶能减肥吗 成都市区旅游攻略