Enable Keyword Expansion

Keyword expansion refers to VSS's ability to place certain information directly into your file to create a file header for you. To use this feature, you place certain keywords into the text of your file in comments so that it does not affect your code. When you add or check in the file, VSS looks for these keywords, and places the relevant information after them.

Because keyword expansion requires VSS to scan each file for keywords, it can considerably slow the Check In and Add Files commands.

Note   Keyword expansion is by default disabled for all files. As VSS administrator, after you have enabled keyword expansion (from the VSS Administrator program), you must tell VSS which files to scan for keywords.

To enable keyword expansion:

  1. On the VSS Administrator Tools menu, click Options.

  2. Click the General tab if it isn't already selected.

  3. In the Expand Keywords in Files of Type box, enter the types of files in which you want keyword expansion to occur; for example, *.txt.

    If you use more than one extension, you must separate them with commas; for example, *.txt, *.c, *.bas.

  4. Click OK.

Note   You can also enable keyword expansion by adding Keyword_Masks = *.txt to the SRCSAFE.INI file on the server. Place it before the first occurrence of a section header, for example, [$/MyProj]. Again, if you use more than one extension, separate them with commas.