Lock and unlock files in streams

In the Visual Studio IDE, you can lock files to prevent other users from delivering changes to the files while you are working on them.

Locking is especially useful for files that can’t be easily merged, such as bitmaps.

To lock or unlock files:

  • In Solution Explorer, right-click the files to lock, and select Lock.

    Locked files are displayed with a red check mark. If another user has locked the file, the file is displayed with a red check mark and exclamation point.

  • To unlock files, in Solution Explorer, right-click the locked files and select Unlock.

    Note: Locked files are unlocked by default when users deliver changes to the locked files.

See also: