We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

How to: Configure Source Control File Encoding

Team Foundation Server source control properties include general file and folder information and the file encoding type. The properties also list the pending check-in status, security information, and branching history. For more information, see How to: View Source Control File and Folder Properties.


Team Foundation Server source control properties are not viewed in Visual Studio's Properties Window. They are viewed in their own Properties dialog box, as described in the procedure below.

Required Permissions

To perform these procedures, you must have the Read and the Check out permissions set to Allow. For more information, see Team Foundation Server Permissions.

To configure source control file encoding

  1. Open Source Control Explorer. On the View menu, choose Other Windows, and then choose Source Control Explorer.

  2. In Source Control Explorer, click the Workspace drop-down list box in the toolbar, and choose the workspace you want to use.

  3. Navigate to a file for which you want to view properties, right-click, and then choose Properties.

  4. In the Properties dialog box, select the General tab.

  5. In the General tab, click Set Encoding.

  6. In the Set Encoding dialog box, use the Encoding drop-down list box to select the encoding base type you want to be used for the file, for example, utf-8.


    Click Detect to have the system detect the file encoding scheme used with the file and populate the list box.

  7. Click OK.


    The set encoding results in a pending change that must be checked in.

See Also