google / google/google-java-format

IntelliJ plugin not working

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

描述

# Summary

Following the [instructions](https://github.com/google/google-java-format/blob/master/README.md#intellij-android-studio-and-other-jetbrains-ides), I'm unable to get the formatter plugin to work.

# Details

I've completed all steps in the instructions:
1. Installed plugin
2. Enabled the plugin in "Settings -> Other Settings -> google-java-format Settings":
![image](https://github.com/user-attachments/assets/138c0e4b-34e4-43a0-adcf-1749706b7335)

3. Updated the configs in "Help > Edit Custom VM Options...":
![image](https://github.com/user-attachments/assets/cf199c81-7e10-40a7-8a9b-c46f52e91bd8)
4. Restarted the IDE

But I still get the following error when attempting to run "Reformat code" command:
![image](https://github.com/user-attachments/assets/d73257fa-bb1a-4ac4-952a-191c3e8f1aa0)

## Environment
- Plugin version: 1.22.0.0
![image](https://github.com/user-attachments/assets/56a3eb43-d702-4a01-8c8d-eb98d669f682)

- IntelliJ version: IntelliJ IDEA 2024.1.3 (Ultimate Edition)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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