-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parameter Hints in autocompletion preview - to show expected type of variable and other info #4569
Comments
Well... Godot has autocompletion preview, I'm not sure what you're asking for. |
Actually I found out that another user has filed this last year: this is the first thing. Autocompletion hinting is not very obvious. In other environments, the hints are shown in the results as you search. In godot you have to hit enter for the hint to appear. For that reason I wasnt getting the hints and realized it when another user on the issue tracker explained it. The second thing is showing more information in the actual hint. set_rot () is a good example, because godot's hint does not tell the user that the value needs to be in radiants. Everywhere a radiant type float is expected - the hint should note that - so the user knows when it needs to be converted. :) But thats about it. I guess you can mark this as a duplicate of #2378 |
I am not sure what exactly you are asking for, but it looks like a duplicate of #4370. Well, that issue is about documentation generation. But the approach to document functions is the same as you would use for this. |
This was implemented by #29744, closing. |
A hint about set_rot() type of expected variable would have helped me avoid a bit of confusion here:
Ways Gdscript could be more user friendly and accessible #4516 (comment)
This is an example of how in some cases your code might parse successfully, but not do what you expect.
In game maker, the auto - completion gives hints like this:
So no need to search for this, the actual autocompletion is showing you immediately what type of value or syntax it expects!
Godot has no hints whatsoever.
To make this even more awesome than godot, gamemaker users can write hints for their own functions parameters. Defining a hint is as simple as:
http://gamemakerblog.com/2014/01/02/how-to-add-intelligent-code-completion-to-scripts/
This is a common feature of many other code editors.
Look at how nice it is in superpowers game engine:
This makes them easier to learn or transition to!
The text was updated successfully, but these errors were encountered: