I'm a Senior DevOps Architect and publish most of my projects as open source. I have a wife, a son and a real life in Hamm, Germany. In my part-time I enjoy making games, music and acting. (He/him)
I think, they're different because they're different things.
The xml tries to mimic the Google style guides using IntelliJs built in code formatter and is written by a third party. The plugin comes directly from Google and seems to be a wrapper around the official formatter by Google as there are plugins for other platforms as well.
To be as close as possible to the code style, I'd suggest the plugin over the xml.
I'm used to using Prettier but it seems they have no Java support currently.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think, they're different because they're different things.
The xml tries to mimic the Google style guides using IntelliJs built in code formatter and is written by a third party. The plugin comes directly from Google and seems to be a wrapper around the official formatter by Google as there are plugins for other platforms as well.
To be as close as possible to the code style, I'd suggest the plugin over the xml.
I'm used to using Prettier but it seems they have no Java support currently.