James Raitsev
James Raitsev

Reputation: 96391

IntelliJ and git, how to ignore white space changes from IDEA?

Using git, we can git diff --check, which would

-- warn if changes introduce trailing whitespace or space/tab indents

Can I configure IntelliJ to only detect change if it does not begin and end with whitespace modifications? (like formatting)

In other words, when i click this icon, i only want to see changes made to my code, excluding formatting and other white space changes

enter image description here

Upvotes: 9

Views: 8320

Answers (1)

Paul Sweatte
Paul Sweatte

Reputation: 24617

As noted above:

IMO, IDEA-75868 should cover this case. If not, submit a new request.

This feature is not yet available, but is being tracked.

References

Upvotes: 2

Related Questions