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里添加属性
  • 热门搜索
    关于大自然的手抄报 手抄报版面设计图花边 小学生文明手抄报 少先队建队日手抄报 儿童节手抄报内容 家乡美手抄报 牙齿手抄报 推广普通话手抄报文字 珍惜生命手抄报 中秋节英语手抄报