IntelliJ IDEA 2017.1 Help

Creating and Managing TFS Workspaces

The interaction between your TFS server and local projects is configured through workspaces. A workspace mainly maps the folders in the repository with their copies on your machine.

In IntelliJ IDEA, you can configure access to several TFS servers and have as many workspaces under them as you need. The list of available TFS server access configurations and workspaces is handled through the Manage TFS Servers and Workspaces dialog box.

In this topic:

To open the Manage TFS Servers and Workspaces dialog box

  1. Open the Settings dialog box, and then click TFS under the Version Control node.
  2. On the TFS page that opens, click the Manage button in the Servers and Workspaces area. The Manage TFS Servers and Workspaces dialog box shows the list of all available servers and workspaces in them.

To configure access to a TFS server

  1. Open the Manage TFS Servers and Workspaces dialog box with the list of all available servers and workspaces in them.
  2. Click the Add button in the Team Servers area.
  3. In the Add Team Foundation Server dialog box, that opens, specify the URL address of the target server in the Address text box.

    In the Auth field, specify the authentication protocol to access the server. TFS uses NTLM authentication, so native Windows applications (that is, Microsoft Team Explorer) authenticate silently with system credentials. IntelliJ IDEA users must always specify their username and password because of limitations posed by Java Runtime.

    To authenticate through OAuth (Windows Live ID), choose Alternate from the Auth drop-down list.

  4. For the NTLM and Alternate authentication types, specify your credentials:
    • For NTLM: the network domain where the TFS server is located, your TFS user name, and your TFS password.
    • For Alternate: your TFS user name and password.
  5. Click OK. IntelliJ IDEA returns to the Manage TFS Servers and Workspaces dialog box, where the new server is added to the list.

To discard a server access configuration, select the server in the list and click the Remove button in the Team Servers area.

To create a server workspace

A workspace is identified by its name and the name of its owner, contains the name of your machine, the URL address of the server the workspace belongs to, and a set of mappings between remote and local working folders that are accessible through the workspace.

  1. Open the Manage TFS Servers and Workspaces dialog box, and select the server in question. To refresh the list of the available server workspaces, click the Reload workspaces button.
  2. Click the Create button in the Workspaces area.
  3. In the Create Workspace dialog box, that opens, specify the workspace name. Optionally, provide a brief description of the workspace in the Comment text box.
  4. In the Working folders area, define the mappings.
    1. Click the Add button new.png. A new line is added to the list of mappings.
    2. In the Server path text box, specify the folder on the server you need to work with.
    3. In the Local path text box, specify the local folder to store the downloaded data in.
    4. Specify the status of the mapping in the Status drop-down list.
      • To enable retrieving data from the server according to the mapping, choose Active.
      • To prevent downloading data from the server according to the mapping, choose Cloaked.
    5. To discard a mapping, select it in the list and click the Remove button delete.png.

See Also

Last modified: 18 July 2017