In Typescript using Visual Studio Code, to view a variable's type all you need to do is hover over it with the mouse. However, in Godot, I can't find any way to see a variables type.

For example, how do I know what the type of this is without having to spend a long time flipping through the docs?
var space_state = get_world_3d().direct_space_state

    gigagiant Ctrl+click on the property in the code editor will link you to built in docs for its type, given that the type is deductible by the interpreter.

      xyz How much of an ask do you think it would be for engine developers to implement the hover method?
      It sounds unobtrusive if you don't want it, and it sounds great to not swap pages and lose focus. Especially great with my face stuffed up with infection so hard I'm getting dizzy half the day. You can imagine swapping pages like that makes me more dizzy, thus losing more time reorienting myself.
      Do you think they'd be more convinced if I propose it as an "accessibility feature"?
      Do you think I should actually make the request instead of posting here about it?

      gigagiant Most of the time I default to the quick and dirty method of making a guess, casting a variable and seeing whether or not it crashes when I hit F6.

      xyz Ctrl+click on the property in the code editor

      ^ this is probably the better method ^

      • xyz replied to this.

        packrat I don't really miss it, but I guess it would be cool to have, especially for people accustomed to it. So sure, make a request. Dressing it up neatly as an "accessibility feature" wouldn't hurt either 😉

        Why dont you guys do it yourself and make a PR?

        • Toxe replied to this.

          kuligs2 Not everyone has the abilities (or time) to do it.