Automatic Word Completion

Top  Previous  Next

 

It is normal for words (labels, names of variables) to be repeated within a limited part of a file. In such cases, the Source window helps you finish typing the whole word.

If the cursor is at the end of line that is being composed, then upon typing a letter, the editor scans the text above and below the current line. If a word beginning with the letters that you have just typed is found in these lines, then the editor will "complete" this word for you by writing the remaining part of the word from the current cursor position. If this word suits you, press Alt+Right (Alt+<right arrow>) and the editor will append the remaining part of the word to the text as if you have typed it yourself. If the word doesn’t suit you, just continue typing and the editor will accept whatever you type. At any point during the typing, you may press Alt+Right to accept the editor’s completion suggestion.

You can press Alt+Right at any time and not only when the editor offers you to complete a word. In this case, the editor will open a list of words that begin with the typed letters. If the list does not include an applicable word, just ignore the prompt. The right pane of the Source window, if it is open, also displays the word completion list.

How to control

To disable automatic word completion, uncheck the Automatic Word Completion box in the Main menu > Configure>Editor Options> General  tab. When the box is checked, a number placed in the Scan Range box defines the number of lines for the editor to scan. The default is 24 lines below and 24 lines above the current line. When this parameter is greater than the total number of lines in the file (for example, 65535), then program composing will become slower because the whole file will be scanned.