My code style keeps getting changed
I have a code style schema XML file that I have had imported into IDEA for years. With the last couple of releases that I've had, I've noticed that every so often, one or more of the code style settings gets changed without my changing it. Sometimes after fixing it, it will remain unchanged for weeks, but then it will be updated again.
Yesterday the "Continuation indent" changed from 4 to 8. I changed it back and everything was fine. Today it was set back to 8 again.
Similarly, the "Class count to use import with '*'" setting and other import settings keeps changing to 5.
I've also noticed the Arrangement settings keep changing. (And, the Rearrange action mostly does not do anything now - seems to be broken, but that is a separate issue.)
I'm currently on:
IntelliJ IDEA 2023.1.2 (Ultimate Edition)
Build #IU-231.9011.34, built on May 16, 2023
Runtime version: 17.0.6+10-b829.9 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
Non-Bundled Plugins:
com.intellij.plugin.adernov.powershell (2.0.10)
Batch Scripts Support (1.0.13)
com.github.copilot (1.2.7.2623)
com.andrewbrookins.wrap_to_column (1.8.0)
EclipseCodeFormatter (23.1.223.000.0-Eclipse_2023-03)
io.codearte.props2yaml (1.0.2)
com.chainstaysoftware.assertions2assertj (1.0.08)
JProfiler (19.1)
com.thoughtworks.gauge (231.8109.90)
Jetbrains TeamCity Plugin (2023.5.129203)
Kotlin: 231-1.8.21-IJ9011.34
请先登录再写评论。
Please see https://youtrack.jetbrains.com/issue/IDEA-318457/Custom-Code-Style-settings-are-accidentally-lost.
This usually happens when an auto-formatter or shared editor settings override your personal preferences. Check if your IDE has format-on-save enabled, or if your project includes config files like, Prettier, or team style rules. These force consistency so everyone’s code looks the same. I’ve noticed the same concept in other fields too teams maintain a uniform standard so quality stays predictable. For example, I was reading about how design consistency is maintained across collections and it reminded me how standards help avoid confusion. In coding, agreeing on one formatter and sticking with it saves a lot of frustration. Clicks here!
I ran into something similar a while ago and it turned out one of my formatter plugins was silently overriding the project settings after updates. Shared config files like
.editorconfigor imported formatter schemas can also reset indentation and import rules without any warning. It gets frustrating because even tiny formatting changes completely affect readability while coding. Funny enough, I notice the same thing with visual consistency in usernames and profiles too. I was testing different text layouts recently on and realized how much structured formatting changes the overall look and feel instantly.Hi Johnbutler00055 , thank you for mentioning the possible cause of such an issue. Could you please provide more information regarding “Funny enough, I notice the same thing with visual consistency in usernames and profiles too.”? It will be helpful if you can share the screenshot, thank you!