How do you safely comment out code in Visual Studio and TFS?
- by burnt1ce
Once in a while, a co-worker check-ins bad code and this blocks you from your application from initializing properly so you can continue doing your work.
To get around this problem quickly, I've commented out the offending code. I accidentally to uncomment out the offending code at the time of check-in and I want to prevent this from happening again.
Do you have a trick to 1) disable bad code that stop you from working 2) prevent yourself from checking in unwanted changes?
I'm currently using Visual Studio as my IDE and TFS as my source code repo.