google / google/google-java-format

The google-java-formatter eclipse plugin doesn't change the format of my code

未关闭
#1,077 5 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
Eclipse
主要语言
Java
星标
6.2k
派生
937
平均合并
6 分钟
30 天内合并 PR
3

描述

Hi,
I drop the google-java-format-eclipse-plugin-1.20.0.jar file in dropins eclipse folder.
I set google-java-formatter in my eclipse workspace and project configuration.
However, the formatter hasen't effect over my code.

I do Ctrl-Shift+F or from the contextual menu, but the java code format remains the same.

My eclipse version is:
```
Eclipse IDE for Java Developers (includes Incubating components)
Version: 2023-12 (4.30.0)
Build id: 20231201-2043
OS: Linux, v.5.14.0-1052-oem, x86_64 / gtk 3.24.33, WebKit 2.42.5
Java vendor: Eclipse Adoptium
Java runtime version: 21.0.2+13-LTS
Java version: 21.0.2
```
I tried too with previous versions of the formatter plugin but the same result.
I thing that got my attention was the Preview. All in a same line:
![image](https://github.com/google/google-java-format/assets/25728645/739aa19e-095b-4764-b91d-92506ec6292d)

Thanks in advance!

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。