Whenever I commit and push my code to git, it shows most of the formatting changes in merge request. I am using intellij as code editor. Is there anyway to auto format the whole project before committing changes ? So at least my merge request should not have code formatting changes every time.
Open Settings > Version Control > Commit Select on the bottom right under "Before Commit" the Reformat code checkbox.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With