title: Team Foundation Server check-in check-out
body: <p>My team currently uses Visual SourceSafe (VSS) 6.0 as the source control for our team project. Recently we decided the switch to the latest source control technologies such as Team Foundation Server.</p>
  
  <p>SourceSafe has check-in/check-out functionality which works in this way:  when I check-out a file, any other team member cannot edit the file until I check-in.  Now I am playing with team foundation server, and I am looking for the similar functionality in TFS. But it looks like even if I check-out a file, other team member can still edit and check-in the file. So when I want to check-in my own file I have to resolve all conflicts as now server has different version than I have.</p>
  
  <p>Can anyone tell me if is it possible in TFS to lock a file before editing, thus preventing other users to edit that file and avoiding all merge and resolving conflict issues?</p>
  
  <p>I tried ‘Get latest version of item on check out’ option. But this does not work for local workspace. So if I enable this option, and do check-in, it completely removes changes in my local file that I am intended to check-in and replaces it with latest server copy. </p>
  
  <p>Can anyone give me any suggestion? 
  Thank you.</p>