Is it possible to automatically remove code comments in Visual Studio files before committing to source control, or is it possible to virtually have comments in files but physically store those in separate files?
The end goal is not to have comments in source control, but be able to have those locally.
This is wrong-headed.
What you should remove is commented out code. Let the version control system do its job. Comments that illustrate what’s in the code and why should remain.
How do you expect to retain them if you remove them in source control? The next time you check out the code, the comments won’t be there.