Using the Word Match Feature

See Also

The word match feature generates the remainder of a word used elsewhere in your code as you type its beginning characters.

To complete a matching word:

  1. Type the beginning of the word and press Ctrl-L to search forward, or Ctrl-K to search backward.

    If a match is found, the rest of the matching word is generated. The current file is searched first. Then all other open files are searched in the order in which they were last used.

  2. If your first match does not generate the desired word, press Ctrl-L or Ctrl-K multiple times to find additional matches.

Using Word Match with Code Strings

You can also use word match to generate the previous or next strings in your file, not counting reserved syntax characters. For example, if you press Ctrl-K without typing the beginning of a word, the last string token you typed in your file is generated.

For example, to generate the debugging line:

System.out.println("varName=" + varName);

Type:

System.out.println("varName=" + Ctrl-K);

When you press Ctrl-K, varName is generated.

See Also
Using Code Completion
Inserting Code From a Template and Macros

Legal Notices