Focus steal after file change

Answered

While using git in a PyCharm terminal, I often have this problem after doing something like git checkout:

If any of my already opened files suffers a modification as a result of the git checkout, the IDE will focus on that opened file.

This is annoying because right after git checkout, the focus is somewhere in the file and I'm very likely to run other commands which will end up in my code.

Too many times I had to delete random "git merge master" lines mangled in my code because of this weird focus steal.

I'm sure this can happen with any other command that would modify an already opened file.

LE: this doesn't reproduce all the time, i'm still trying to find a consistent way of reproducing it and will update here once i have.

1

Please sign in to leave a comment.