.idea/editor.xml frequently changes for unknown reasons
Answered
I've read that the .idea/ directory, apart from specific files in it, should be committed to version control because it contains project settings common to all users. However, after almost every save, the editor.xml file changes. Sometimes it seems like lines merely move up or down.
This is inconvenient to the versioning I use. Is there a way to get this file into a canonical format, or to store all settings in my CLion IDE to it all at once, so that it will stop being updated for seemingly no reason?
Thanks, I appreciate any help.
Please sign in to leave a comment.
Hello!
Most probably, you have CLion Nova enabled in your CLion. Is it so?
CLion Nova used to save some project settings into
.idea/editor.xml
. Starting with 2024.2.1, most of the project settings were moved to.idea/misc.xml
(CPP-39210).However, we've just made another iteration of changes and moved the settings not intended for sharing from
misc.xml
toworkspace.xml
. These changes will be included in the second CLion 2024.3 EAP build and in CLion 2024.2.3. It means, that starting with the second CLion 2024.3 EAP build and CLion 2024.2.3, the proper way would be not to share onlyworkspace.xml
.Thank you very much. I'm sorry for the late response. Yes, I have CLion Nova enabled. I'm a new user, and I wasn't aware of it.
If I understand the response correctly, it's expected behavior for `.idea/editor.xml` to change after every save. Is this so? What can mitigate it?
While this feature is not technically essential, it does mean that meaningful, intentional changes to the project settings are impossible to diff due to the many meaningless ones that are added and removed, automatically.