How to: Copy and paste workspace mappings

Grant Holliday’s blog

Senior Service Engineer, Microsoft Visual Studio Team Foundation Service

How to: Copy and paste workspace mappings

  • Comments 2

One of the very little known tricks when dealing with Workspace mappings in TFS Source Control is that you can actually copy & paste working folders. This can be useful if you need to share workspace mappings between team members. You can just copy and paste them between developers.

To create a new mapping, you need to specify Source Control Folder & Local Folder pairs separated by “:” (colons).

For example, author the following mappings in notepad and copy them to the clipboard.

Notepad showing workspace mappings

Then open the File | Source Control | Workspaces | Edit.. window.

If you right-click and select “Paste”, or just press Ctrl-C, it will parse and paste the mappings into the dialog.

Edit workspace dialog with context menu showing Paste

And the result is this:

Working folders pane showing pasted working folders

What is interesting with workspace mappings is that neither the Source Control Folder or the Local Folder have to be valid. I’m not sure why this is but I’ve asked the question.

  • I've worked with teams that have a common way of configuring workspace and working folder mappings. Although

  • Thanks!  This saved me a ton of time when switching from one pc to another.

Page 1 of 1 (2 items)