Lorenzo Vainigli

Software developer, passionate about programming

Restore pre-commit code checks in Android Studio Hedgehog

10 December 2023
Programming
1 min.
148

Android Studio Hedgehog has changed the behavior of code analysis during committing code to VCS.

Previously code checks were performed before the commit of code, but now this happens after the commit.

I personally don’t like this because I don’t want to commit code that contains warnings. Although it is possible to commit the fix by amending the last commit, but the oldest flow is still the best approach.

But there is a solution: just open the IDE registry (double Shift and type “Registry”), then look for the vcs.non.modal.post.commit.checks key and disable it.

Now the code checks will be executed before the commit.

Lorenzo Vainigli

Android developer and passionate about computers and technology since I was a child.
I have a master's degree in Computer Science obtained at the University of Bologna.
I like astronomy 🌌 and Japanese culture ⛩️.
Here I tell more about myself.