Variable name completion works like filename completion. If the parameter begins with a %, the completion routines will scan the environment, internal variables, and variable functions for matching variable names. For example, if the PROMPT and PATH variables are in the environment, in that order, and no other variables start with p, the sequence below may be used to display the value of PATH:
echo %p<Tab>
echo %PROMPT<Tab>
echo %PATH<Enter>
You can view matching variables in a variable completion window. To activate the window, press F7 or Ctrl-Tab at the command line. You will see a popup window, with a sorted list of variable names that match any partial name you have entered on the command line. You can search for a name by entering a string (including wildcards or regular expressions) in the edit window on the title bar. TCC will remove non-matching lines from the window. See Popup Windows for details.
Variable Completion Window Keys:
| F7 or Ctrl-Tab | (from the command line) Open the window. |
| Up | Scroll the display up one line. |
| Down | Scroll the display down one line. |
| Left | Scroll the display left 4 columns. |
| Right | Scroll the display right 4 columns. |
| PgUp | Scroll the display up one page. |
| PgDn | Scroll the display down one page. |
| Home | Go to the beginning of the list. |
| End | Go to the end of the list. |
| Enter or Double Click | Insert the selected variable name into the command line. |
Note: The keystrokes shown above are the default values. See Key Mapping Directives for details on how to assign different keystrokes.