Using the AutoComplete Options

AutoComplete options provide quick access to valid member functions or variables, including global variables, by means of the Members list. Selecting a member from the list inserts it into your code.

You can also use AutoComplete to view function declarations and variable type information.

By default, AutoComplete is turned on. However, you can turn it off when needed.

The following list is a summary of each AutoComplete option:

Members List
Members List displays a list of valid member variables or functions for the selected class or structure. Selecting a member from the list inserts it into your code. If you invoke Members List with the insertion point on a blank line, AutoComplete populates the Members list with global members, including functions, classes, and local variables. For more information, see Using Members List.

Quick Info
Quick Info displays the complete declaration for any identifier in your code. When you place the cursor over the identifier, its declaration appears in a ToolTip. For more information, see Using Quick Info.

Parameter Info
Parameter Info displays the complete declaration, including a parameter list, for the function to the left of the cursor. The parameter in boldface indicates the next required parameter as a ToolTip during typing. For more information, see Using Parameter Info.

Complete Word
Complete Word completes the variable's or function's name once enough characters to differentiate the term have been entered. This can save you from having to repeatedly type long names. For more information, see Using Complete Word.

Using Members List

Use the Members list to work with classes.

Type your class or structure declaration, and then type a period (.) or ->. AutoComplete displays all valid members in a scrollable list.

You can use the arrow keys to move through the list, or, if you know the first few letters of the member name, begin typing to go to the member in the list directly. If you type a word that is not in the list, the nearest match is displayed.

To insert the selected member into your code, type a period characted (.) or ->, or press ENTER, TAB, or CTRL+ENTER, or double-click on the member.

Press ESC at any time to close the Members list.

Use the Members list to work with Global Variables or Global Functions

With the insertion point on a blank line in your source file, press CTRL+SPACE. The Members list opens, populated with only global variables, including global functions, classes, and local variables.

Members List Viewing

The following table shows the icons that appear in the Members list:

Icon

Meaning

Class

Private member function

Protected member function

Public member function

Private member variable

Protected member variable

Public member variable

Public property

Public enumerator

Public structure

Public interface

Public namespace

Public delegate

Using Quick Info

To display type information, move the pointer over the identifier. E.g. for declared CCGetParam function:

Using Parameter Info

When typing a member function, enter an open parenthesis character (to see the parameter list. AutoComplete displays the complete declaration for the function in a ToolTip. The first parameter in the list appears in boldface.

As you type the function parameters, the next parameter that you add becomes boldface.

For overloaded functions, the parameter list gives you a choice of which function you want to use. To switch between functions, use the arrow keys.

Press ESC at any time to dismiss the list, or continue typing until you have completed the function. Typing the closing parenthesis also
dismisses the parameter list. If you dismiss the parameter list before completing the function and want to view it again, press CTRL+SHIFT+SPACE.

Using Complete Word

The Complete Word types the rest of a variable or function name once you have entered enough characters to differentiate the term. Type in the first few letters of the name, and then press CTRL+SPACE. AutoComplete completes the name for you. If what you have typed cannot be resolved, the Members list appears, with the nearest matching word highlighted. This can save you from having to repeatedly type long names.

AutoComplete Option Modification

By default, AutoComplete works automatically. However, you can turn it off.

If the option is unchecked, then CodeCharge Studio will not parse code sources and all AutoComplete options will not appear.

Invoking AutoComplete Options from the Keyboard

You can invoke AutoComplete options using keyboard shortcuts.

Key Combination

Command

CTRL+SHIFT+SPACE

View parameter info

CTRL+SPACE

Completing the Current Word

CTRL+SPACE

Pressing on an empty line opens the Members list populated with global variables

CTRL+SPACE

Pressing after a period (.) or -> opens the Members list populated with all valid members

UP and DOWN Arrow Keys

Switch between overloaded functions

ESC

Press at any time to dismiss any AutoComplete option

When AutoComplete Is Unavailable

The following describes situations when the AutoComplete options may not work as you expect:

There is a code error above the cursor.
If there is an incomplete function or other coding error above the location of the insertion point, AutoComplete will not be able to parse the code elements and therefore will not work. You can enclose the faulty code in comment delimiters to enable AutoComplete again.

The insertion point is inside a code comment.
If the insertion point is within a comment in your source file, AutoComplete options will not be available.

The insertion point is inside a string literal.
If the insertion point is inside the quotation marks around a string literal, AutoComplete options will not be available.

The insertion point is outside the script markers.
In ASP, PHP and JSP, if the insertion point is outside the script markers (<% ... %> or <? ... ?>), AutoComplete options will not be available.

The insertion point is outside member declaration in a class.
In ASP, PHP, if the insertion point is within class declaration, but it's outside class members, AutoComplete options will not be available.

Function result is not treated as an object.
In PHP, the function result is not treated as an object, therefore any expression of the "some_function()->" type will not render an AutoComplete list. In ASP, if the function can return several objects (different classes), its result is not treated as an object.

Non-CCS Packages and .Net Framework classes are unavailable.
The content of the linked non-CCS packages will not be supported by the AutoComplete for Java. .Net Framework and external libraries will not be supported by the AutoComplete for C# and VB.