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: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.
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.