How do you safely comment out code in Visual Studio and TFS?

Posted by burnt1ce on Programmers See other posts from Programmers or by burnt1ce
Published on 2012-11-08T15:50:47Z Indexed on 2012/11/08 17:22 UTC
Read the original article Hit count: 418

Filed under:
|

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.

© Programmers or respective owner

Related posts about visual-studio

Related posts about tfs