Object notation opens new possibilities! To help you adopt this way of coding, we have improved the autocomplete mechanism of the method editor. Whenever you type a dot after an object, you will now get a list of suggested attributes. Just what you need to speed up your coding!
Previously, you either had to memorize all your attributes or you had to search through every opened method. Both are time-consuming and can make coding annoying.
With the autocomplete functionality, you’re more productive since you can find the list of available attributes right in front of you!
Each time you open a method, or edit some code, the method editor collects the attributes used in your code and proposes them in the list of suggestions. More details are provided in the “Writing a method” article from the documentation.
customize the autocomplete mechanism
The autocomplete behavior can be customized to best fit your coding habits. In the 4D preferences panel, you can define whether the suggestion list will be automatically opened after typing a dot character (option checked), or only after using the tab key (option unchecked).