Automatic Argument Completion - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Automatic Argument Completion

 

Argument Completion in the Document

Argument Completion in the Code Editor

Preferences

Details

Argument Completion in the Document

Argument completion makes it easier to enter Maple commands.  When enabled, as you type commands in 2-D Math or 1-D Math, Maple offers automatic completions for arguments in many useful cases by displaying a popup list of suggested completions.

To use argument completion:

1. 

If only one item is suggested, press Tab to insert the suggested item into your expression.

2. 

If more than one item is listed, use the arrow keys to select an entry then press Tab.  You can alternatively use your pointer to select an entry from the list.

The argument completion list can include examples for some suggested items.  In such a case, if you select that entry, the example is inserted.

Argument Completion in the Code Editor

This works similarly to how it works in the document.  The only difference is to select an item with the mouse, you must double-click the item.

Preferences

Argument completion is not enabled by default. You can disable/enable it from the Options Dialog.

1. 

Open the Options Dialog.

2. 

In the Interface tab, under Show:

– 

To disable this feature, clear the Automatic argument completion check box.

– 

To enable this feature, select the Automatic argument completion check box.

3. 

Select apply to session or apply globally.

By default, Tab is the key you use to accept an entry from the list of available completions. If you want to enable the use of the Enter (Return on Mac) key as another way to accept an entry from the list of available completions, you can do so in the same tab of the Options Dialog.

1. 

In the Interface tab, under Show:

– 

To allow the use of Enter/Return, select the Enter triggers completion selection check box.

Details

Argument completion works on some expressions.  These suggestions can appear when you are typing a function call of the form commandname(arguments).  Typically, the popup list would appear in one of these cases:

– 

After you type commandname(    to suggest a first argument

– 

After you have typed commandname(arguments,    to suggest an additional argument or option name

– 

After you have typed commandname(arguments,argname=    to suggest the value for an option name

– 

After you type any of the above followed by the beginning of a word, to suggest a completion for that argument

Maple checks both your current session and Maple's library of known names, so, for example, if you have assigned an expression to the name A and then begin typing a function call for which A is a valid option for the first argument, Maple may suggest A.

See Also

Complete Command

Entering 1-D math

Entering 2-D math

Options>Interface