Controlling the GAUSS Autocomplete Behavior

Introduction

Autocomplete is becoming a common feature in the tools we use in all aspects of our lives, because of it's ability to help us to type more accurately and quickly. When programming in GAUSS, the autocomplete can also show you new functions you were not aware of. Today we will discuss how to use and control autocomplete features of the GAUSS editor and command window.

Basic usage

By default, the GAUSS editor will give you a drop-down list of possible completions after you type a few characters and a very short delay. For example, if you enter rnd and pause, you will see something like the image below:

GAUSS autocomplete.

The images to the left of each suggestion indicate what they represent. A pink bar indicates a GAUSS function or procedure, a blue bar indicates a variable and the three smaller connected bars indicate a structure.

Once the autocomplete drop-down has opened you can use the following keys to control it:

Key Action
Enter Complete the selected word.
Up arrow Move the selection up the list.
Down arrow Move the selection down the list.
Esc Close the drop-down window.

Controlling the autocomplete

You may have noticed that the command window, however, does not automatically provide autocomplete when you type. Use the CTRL+Space key combination in the command window to open the autocomplete suggestion list.

If you would prefer that behavior in the editor, you can modify your GAUSS preferences to make this change. From the main GAUSS menu, select Tools > Preferences. Then when the preferences dialog window opens, select Source towards the top left as shown below.

GAUSS autocomplete preferences.

If you would like the autocomplete to be off by default, select the check-box next to "Manual only (CTRL+Space)". Then the autocomplete suggestions will only open in the editor or the command window when you hit the CTRL+Space key combination.

The other option that you control is what is included in the GAUSS autocomplete list. The choices are:

  • GAUSS Library - Provide autocomplete for built-in GAUSS functions.
  • Current Document - Provide autocomplete for variables and procedures in the current file.
  • All - Both of the above.

Usually, that is left set to "All". However, if you have a file with many variables and need more help finding the GAUSS functions, you may prefer to set it to just "GAUSS Library".

Conclusion

In this short post, you have learned:

  • The keys which control the autocomplete window.
  • How to activate the autocomplete tooltips with CTRL+Space.
  • The GAUSS preferences settings you can use to control autocomplete behavior.
Leave a Reply

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 14 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy