Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 201
James Raitsev Avatar asked Dec 24 '12 16:12

James Raitsev


1 Answers

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

  • IDEA-75868 commit diff view: provide ignore whitespace options
like image 134
Paul Sweatte Avatar answered Oct 23 '22 21:10

Paul Sweatte