-
-
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
Improve editor autocomplete #23188
Comments
So, I think we'd have to consider all the details about what this actually goes into. In untyped GDScript, I would expect to see...
If typed GDScript, then I would expect all of the above, but also:
Maybe also highlight the current parameter in a parameter list the cursor is on. For content in the "detailed" view shown above, we'd have to wait and rely on #20318 to allow scripts to bind this additional information to the script itself. I don't know if annotations are intended to be a GDScript-only or Script-wide feature, but we'd only get autocompletion for a foreign language's types if annotations were passed through the scripting API. Something else necessary to ensure that checking this information doesn't involve torture would be to add [the issue where people want an option for the GDScript parser not to run unless the user is at the start of a new line] (forgot the ID number and can't relocate the Issue). If people suddenly stop typing to look at the autocompletion-generated GUI, then they won't want the editor to spam them about there being parse errors since they aren't finished typing. Any other ideas? |
Closing in favor of godotengine/godot-proposals#408, as type icons are now displayed next to suggestions since 3.2. |
Currently, as far as I am aware, the built-in editor's autocomplete functionality mostly just consists of completing symbol names (variables and functions, etc), but doesn't include other relevant information. It would be very useful if it was extended in a few ways (apologies if any of these are already possible):
For inspiration, here is how VSCode currently does this; by default, it shows the name, symbol type (with icon), and part of the signature, but shows more extensive information (including doc comments) when Ctrl+Space is pressed.
Normal autocomplete:
Info-dense mode:
The text was updated successfully, but these errors were encountered: