Raj
Raj

Reputation: 837

how to stop checking out automatically in tfs when source is edited in VS 2010

I am new to tfs. I am checking out a file by right click and check out in solution explorer. But if try to alter the any file it is automatically checking out. how to prevent this ?

And i need to set locking type as Prevent other users from checkin and check out

How to achieve this ? Thanks in advance.

Upvotes: 2

Views: 5211

Answers (3)

Kapil Khandelwal
Kapil Khandelwal

Reputation: 16134

VS->Tools>Options> Select Source Control under options. Select Environment under Source Control. Now under Checked-in Items->Editing-> Select Do noting

enter image description here

Upvotes: 12

DragonZero
DragonZero

Reputation: 845

Find the file in Windows Explorer, and modifying the properties of it by turning off the Read-Only flag.

This is not recommended though as Visual Studio will not block you from modifying the file, nor will it check it in when you do perform a code check in.

One way for Visual Studio to detect the file change is when your TFS connection is brought Online from an Offline state and the wizard runs looking for non Read-Only files in the solution, then marks those files as checked out.

Upvotes: 0

Ian Gilroy
Ian Gilroy

Reputation: 2041

There's a setting in Tools | Options | Source Control | Environment that controls automatic checkout of edited files

Upvotes: 1

Related Questions