How to do autocomplete for CodeEdit node?

Godot Version

v4.4.1.stable.mono.official [49a5bc7b6]

Question

I’m trying to use the code suggestion/completion on CodeEdit node. My current approach is to load a massive dictionary of function name and member name of known object I will pass to the script. But I don’t know what’s the approach that can generalize to all object of a class or a custom class declared inside the script. How can I best resolve this?

You can use Object.get_property_list(), Object.get_method_list(), and Object.get_signal_list() to get the list of properties, methods, and signals the object has.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.