djm.im
djm.im

Reputation: 3323

IntelliJ IDEA disable editing/formatting .svg images in a project

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

Answers (1)

Mahozad
Mahozad

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: CodeReformat File...Scope ➜ 🔘 Only changes uncommitted to VCS

Upvotes: 1

Related Questions