google / google/google-java-format

IntelliJ plugin not working

Open
#1,130 4 comments 2 reactions 0 assignees View on GitHub
IntelliJ
Dominant language
Java
Stars
6.2k
Forks
937
Avg merge
6m
Merged PRs (30d)
3

Description

# 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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.