google / google/google-java-format

Please document the role of Active profile in Eclipse configuration

未關閉
#646 7 則留言 5 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

Eclipse
主要語言
Java
星號
6.2k
分支
936
平均合併
6 分鐘
30 天內合併 PR
3

描述

The README states: “The plugin adds a google-java-format formatter implementation that can be configured in Window > Preferences > Java > Code Style > Formatter > Formatter Implementation.”

It is unclear what can be configured exactly, or whether anything can be configured, considering the note in the same file: “There is no configurability as to the formatter's algorithm for formatting. This is a deliberate design decision to unify our code formatting on a single format.”

Relatedly, the role of the Active profile dialog box is not clear.

I just tested changing the number of spaces in the active profile, and this seems to have no effect on Source / Format when the google-java-format implementation is selected.

Please add some explanations about what can be configured and which Active profile should be chosen or indicate if it is supposed to have no effect.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 README.md 的 Eclipse 部分開始,使用 Eclipse 的 Active profile 設定並選取 google-java-format 實作來重現回報的行為。記錄 formatter 設定和 Active profile 控制的內容,包括 profile 變更是否會影響 Source / Format,讓 README 清楚說明應選取哪個 profile。

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

評估

技術堆疊
java
領域
documentation
Issue 類型
文件
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

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

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