Check out and edit files
Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019 | TFS 2018
Visual Studio 2019 | Visual Studio 2022
When you want to edit a file, you can open it from Visual Studio Solution Explorer or Source Control Explorer. When you begin editing a file, it's automatically checked out to you.
In rare situations, for example if you want to check out and lock the file to make sure your changes are checked in before changes from other team members, you might need to manually check out and optionally lock a file.
As a best practice, use the Lock type option with discretion, and notify your teammates why you are locking an item and when you plan to remove the lock.
You must be one of the Contributors for your project. To learn more, see Default TFVC permissions.
Check out items manually
In the Check Out dialog box, you can optionally lock the files. Under Lock type, select one of the following options:
- Unchanged - Keep any existing lock
- Check In - Allow other users to check out but prevent them from checking in
The Lock type menu isn't available if:
- Another team member has locked the file. If other users have locked any of the specified files, the lock operation fails. For more information, see Lock and unlock folders or files.
- The Enable multiple check-out option has been disabled by a project administrator, which isn't recommended. Administrators can configure this option by selecting Team > Team Project Settings > Source Control from the Visual Studio menu bar.
Choose Check Out.
In Solution Explorer and in Source Control Explorer, a check mark appears next to the items that you have checked out. In Team Explorer, the files show under Included Changes on the Pending Changes page. In Source Control Explorer, a pending edit change is visible to you and to members of your team.
Work from the command prompt
- The Get command gets files from the server.
- The Checkout (or Edit) command checks out files from the server.
- If you're beginning a new task, it's a good idea to download the latest files from the server before you check out files and begin your work.
- To help you and your team organize and track your work, use the My Work or Pending Changes page to associate a task or a bug with the work you're doing. See Develop code and manage pending changes.
- If you use a server workspace, files that you haven't checked out are read-only.
- You can review and manage your work, suspend your work, and ultimately contribute your work to the team's codebase.
Submit and view feedback for