Why are Actions on Save (e.g. Reformat Code) settings saved in workspace.xml?

I’ve run into a problem with the Actions on Save → Reformat Code option in IntelliJ. The setting is saved in workspace.xml, which isn’t meant to go under version control.

That means we can’t enforce this at the team level. Everyone has to remember to enable it locally, and when someone forgets, code reviews end up full of “please reformat” comments instead of focusing on the actual code.

It feels like this setting should live in a project-level config file (like other code style settings) so it can be shared in VCS.

Is there any workaround for this today, or should this be a feature request?

Thanks.

This forum is for plugin developers. Are you asking how to deal with this using a plugin? If not, please use YouTrack instead.

1 Like

I’m a plugin developer, but was under the impression that this forum covered wider “Intellij Platform” discussion. My bad. Thanks for the reply.

In YouTrack you have better chances that a relevant team will see it and it will get in all sort of filters about features

1 Like

A request for this feature exists in Youtrack under https://youtrack.jetbrains.com/issue/IJPL-8575/Store-Actions-on-Save-Settings-in-VCS-as-xml-file-in-.idea-folder. Please upvote!