google / google/google-java-format

google-java-format-eclipse-plugin-1.11.0.jar does not format the same as command line

未關閉
#642 3 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
Eclipse
主要語言
Java
星號
6.2k
分支
937
平均合併
6 分鐘
30 天內合併 PR
3

描述

Here is a test:

```
package some.test;

public class Test {
String myLongString =
"The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.";
}

```
Eclipse formats it just as above. google-java-format-1.11.0-all-deps.jar on the comamnd line formats it as follows:

```
package some.test;

public class Test {
String myLongString =
"The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
+ " The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy"
+ " dog.";
}

```

貢獻指南

開啟貢獻指南

研究方向

使用 Eclipse 外掛程式和 google-java-format-1.11.0-all-deps.jar 從命令列重現所提供的 Java 範例;該 issue 未指定任何儲存庫檔案或測試。追蹤導致字串常值輸出不同的格式化路徑,並在兩個進入點產生相同格式時視為該 issue 已完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java
領域
tooling
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。