Word completion, Configuring completion settings – Slick EDIT V3.3 User Manual

Page 170

Advertising
background image

Auto-Complete options can be configured for each file extension type. This allows you to activate and de-
activate particular features on a per-language basis. To change Auto-Complete options, see

Auto-

Complete Tab

.

Word Completion

Word Completions search the current editor window for text matching the prefix at the current cursor posi-
tion. Most completions are driven by Context Tagging

®

, matching symbols such as function names and

variables. Word Completions can match any text in the current editor window, including comments.

Auto-Complete also lists word completions, but it is often faster to use key bindings to search for and in-
sert Word Completions. The following is a list of commands for these operations and the key bindings in
the CUA emulation. See

Creating Bindings

to change them.

complete_prev (Ctrl+Shift+Comma) – Searches backwards through the current editor window to find

a match.

complete_next (Ctrl+Shift+Dot) – Searches forwards through the current editor window to find a

match.

complete_more (Ctrl+Shift+Space) – Adds subsequently more text from the matched line to the curs-

or position, allowing you to extend the amount of text inserted.

The following example of code shows how word completion is used:

if (pWindowView->pBuffer->LineNum>100) {

pW<Cursor is Here>

}

Press Ctrl+Shift+Comma,Ctrl+Shift+Space,Ctrl+Shift+Space to obtain the following result:

if (pWindowView->pBuffer->LineNum >100) {

pWindowView->pBuffer->LineNum <Cursor is Here>

}

Pressing Ctrl+Shift+Comma matched "pWindowView" in the previous line. If you wanted to match an
earlier occurrence beginning with "pW", press Ctrl+Shift+Comma to find the next previous match. This
also changed "pW" on the second line to the matching text, "pWindowView". Pressing Ctrl+Shift+Space
extends that selection, matching "pWindow->pBuffer". Pressing Ctrl+Shift+Space, again, extends the se-
lection to include "pWindow->pBuffer->LineNum".

You can easily see how this would save time typing in multiple lines that access structs, class members,
arrays, etc.

Configuring Completion Settings

Word Completion

148

Advertising