Reputation: 3323
I have a .svg
image in a project. And each time when made any change in the code (not in this file), IDEA edits/re-formats this .svg
file in the background. So, it has become part of changes for a new commit. Therefore, I have to roll back changes.
How to disable these background changes in IDEA?
Upvotes: 0
Views: 555
Reputation: 24732
I don't know about background changes but there is a useful option in IntelliJ that may be relevant. By selecting this option, when you reformat the code explicitly (with CTRL+ALT+L on Windows), it will just reformat new (uncommitted) changes to file.
Top menu bar: Code ➜ Reformat File... ➜ Scope ➜ 🔘 Only changes uncommitted to VCS
Upvotes: 1