google / google/google-java-format

IntelliJ plugin not working

Offen
#1,130 4 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
IntelliJ
Vorherrschende Sprache
Java
Sterne
6.2k
Forks
937
Ø Merge
6 Min.
Gemergte PRs (30 T.)
3

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.