在 IDEA 中 google- Java -format 无法使用

236 天前
 xiaopanzi

我在 IDEA Utimate 里面下载的该插件,并在custom vm options里面添加了如下配置:

--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED

但是,它还是提示需要设置:

The google-java-format plugin needs additional configuration before it can be used. Follow the instructions here.

这是 Bug 还是我设置的问题?


IntelliJ IDEA 2023.2 (Ultimate Edition)
Build #IU-232.8660.185, built on July 26, 2023
Subscription is active until December 30, 2023.
For educational use only.
Runtime version: 17.0.7+7-b1000.6 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 6.1.53-1-manjaro
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 24
Registry:
    ide.experimental.ui=true

Non-Bundled Plugins:
    IdeaVIM (2.5.1)
    com.codeium.intellij (1.2.89)
    google-java-format (1.17.0.0)

Kotlin: 232-1.9.0-IJ8660.185
Current Desktop: KDE
594 次点击
所在节点    Java
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/977896

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX