Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019
Visual Studio 2019 | Visual Studio 2022
For files in Team Foundation Version Control (TFVC), you can use Visual Studio Source Control Explorer to move or rename one file or folder at a time.
You can also use the tf
command-line utility to move or rename files or folders in TFVC. For more information, see Rename command (Team Foundation Version Control).
Important
Don't use Source Control Explorer to move folders or files that a Visual Studio project or solution references. Move these files with Solution Explorer instead, and use a new changeset to check in the move.
If you're not using TFVC for version control, use Solution Explorer to move and rename files in Visual Studio solutions or projects.
Category | Requirements |
---|---|
Permissions | Member of the Contributors group for your project. |
For more information, see Default TFVC permissions.
In Source Control Explorer, right-click the item that you want to move and choose Move.
In the Move dialog box, manually enter the destination for the item in the To box, or choose Browse to use the Browse for Folder dialog box.
Choose OK.
In Source Control Explorer, right-click the file you want to rename and choose Rename.
Enter the new name for the item.
Choose OK.
Avoid using your operating system, such as Windows File Explorer or the Windows command prompt rename
command, to rename items that are managed by TFVC. If you do use your operating system to rename an item in a local workspace, Visual Studio detects the change as two changes: an add and a delete. You can join the two actions into a rename action.
Note
This issue doesn't apply to Git version control.
In Visual Studio Team Explorer, choose Pending Changes.
In the Excluded Changes section of the Pending Changes page, select Detected.
In the Promote Candidate Changes dialog box, select the delete and add actions, right-click, and choose Promote as Rename.
A single rename change now appears in the Included Changes section.
Tip
You can review and manage your work, suspend your work, and ultimately contribute your work to the team's codebase.
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayTraining
Module
Manage source code by using version control in finance and operations apps - Training
When you're collaborating with other developers, it's important to manage your source code by using version control. For finance and operations apps, source code is managed by using Azure DevOps within Visual Studio.