Replies: 1 comment 1 reply
-
Thanks for your interest in contributing this feature 🙂 Ctrl + Click functionality is known as symbol lookup (there is a "Lookup Symbol" shortcut to trigger it from the keyboard). You can find its implementation here: https://github.com/godotengine/godot/blob/0ca8542329888e8dccba89d59d3b728090c29991/editor/plugins/script_text_editor.cpp#L882 As explained in #899, refactor tooling (i.e. symbol renaming) is already present in the GDScript LSP server, but it's not exposed in the built-in script editor. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Find usages or Find all references, returns a search result with all the places where the variable (or function) is being used. Smart Rename allows to rename a variable, but not based on the name being the same, but the variable having the same context, ie : Smart Rename would allow to modify all the references found for a given variable through find all references.
I am aware that due to GDScript being a dynamic language, this is a feature that is hard to implement. But I wonder if in the very least, this couldn't be a feature that could be implemented for the people who use strong type in GDScript. Or, it could return the results that it's able to find, fully stating that there might be missing references through dynamic language. These two functionalities could even be optional and need to be enabled in editor settings.
As this annoys me greatly, I'd be willing to work on this feature if someone were to point me in the right direction. (If I can see how ctrl + click is implemented, and probably how ctrl + shift + f is as well, I believe I could find a way to do it in reverse. Of course, I can't guarantee results before I look into it but I'd be willing to try.)
Beta Was this translation helpful? Give feedback.
All reactions