How do you find out which option was changed in the editor from code?

That is what I was looking for exactly. Thank you.