Add option to open online doc for selected class in script editor
When the script editor's current tab is a script (or no tab is opened):
When the current tab is a class:
There might be an issue if we try to open a custom class, but from what I can tell, it's not possible to open the documentation for a custom class in the editor. (At least I was not able to)
Yes indeed, I did not test this since I was not able to open the documentation for the custom classes in my project. I assumed it was not possible.
Can you clarify the steps you used to open a custom class's documentation?
Can you clarify the steps you used to open a custom class's documentation?
Add this line above an extends declaration in a script:
class_name Test
Then use Search Help in the top-right corner of the script editor and search for Test, and open its page.
That's odd, it's not working for me:
Do I need to enable an option somewhere?
Nevermind, I figured it out. The documentation is not available for classes that only have private attributes and functions by the looks of it.
This now works with custom classes. I have no idea if this fix works with custom C++ classes though, as I have no way to test this currently.
Commits needs to be squashed (see https://docs.godotengine.org/en/latest/contributing/workflow/pr_workflow.html#the-interactive-rebase).
Thanks! And congrats for your first merged Godot contribution :tada: