Auto-Complete

Completions

Completions save keystrokes as you are typing code by providing a way to automatically complete par- tially-typed text. There are several types of completions in SlickEdit® Core:

Auto-Complete - A feature set that includes syntax, keyword, and symbol completions.

Word Completion - Completions that work for any text in an editor window.

Command Line Completions - Completions for command line entries.

Auto-Complete

Auto-Complete offers suggestions for how syntax, keywords, symbols, and lines of code may be com- pleted by the editor. It works by looking at the word prefix under the cursor and using several different queries to find and suggest completion options. Each of these types of suggestions can be individually turned on or off, allowing you to customize auto-completion to your liking.

Using Auto-Complete

Auto-Complete is activated when the editor is idle for a short period of time and there is a partially-typed word under the cursor. When Auto-Complete is active, the available completions are indicated in several ways:

A light bulb appears on the left edge of the editor.

A list of completions appears under the word being typed.

The rest of the completed word or statement appears to the right of the cursor.

Figure 6.18. Example of Auto-Complete

146

Page 168
Image 168
Slick V3.3 manual Completions, Using Auto-Complete