Today when I was checking all changes with git history diff screen, I found two of my C# files have been added unrelated namespaces.
using System.Windows.Forms;
and
using System.CodeDom;
The two C# files are not referring to those namespaces at all. As I can recall, my activities today are:
- coding and debugging.
- renaming variables using refactor.
- outlining code with ctrl-M, ctrl-O.
Can anyone explain this behavior? Thanks in advance!
----------------Update--------------------
Turns out it is a kind feature of Visual Studio. If I type "Button" in a C# file, "using System.Windows.Forms;" will be automatically added, even after I deleted "Button" afterwards, that using remains. Thank you guys for your comments!