Contents

Previous

Next

Last

Automatic Command Completion

The editor has an Automatic Command Completion capability that can be used to enter functions into the CMS file. This can be handy if you can't recall exactly how a keyword is spelled or which keyword you want to use.

To activate this function, put the cursor in "whitespace", e.g. not on a word or at the beginning/end of a word. Press CTL-Space and the completion box will open at with all of the CMS keywords and a little explanation of each. The box looks like this:


Once the box is visible, start typing the command you want to enter or scroll through the list and find it manually. If you enter characters, the list will shorten to include only the keywords that match what you've typed so far. When you get to the point where the highlighted keyword in the box is the one you want, hit space again and the box will close and the keyword will be entered at the cursor position.

For example, suppose you wanted to put in "Timer". Press CTL-Space and the completion dialog will open. Type "t" and the list will shorten to include 5 keywords that start with "t". When you type "i", it will shorten again to just "Timer" and "TIMESTAMP" with "Timer" highlighted. That's the one you want so press the space bar. The box will close, and "Timer( " will get entered at the cursor position, ready for you to start entering the parameters. If you have the cursor touching text when you hit CTL-Space, it will show you the keywords that match that text. This is confusing if there are no keywords since the box comes up blank. There's nothing really wrong, you just need to start typing with the cursor not touching any existing text.