Any program or trick to find the definition of a variable?

前端 未结 8 1032
梦谈多话
梦谈多话 2021-01-02 09:01

Many times when I am watching others code I just want to find where and how a variable is defined. Normally what I do now is look for the type of the variable until I find t

8条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-02 09:45

    You've already given the most appropriate tool: an IDE. This is exactly the kind of thing which an IDE excels at. Why would you not want to use an IDE if you're finding development painful without one?

    Note that Emacs, Vim etc can work as IDEs - I'm not talking about forcing you the world of GUIs if you want to stay in a text-only situation, e.g. because you're SSHing in.

    (I'm really not trying to be rude here. I just think you've discounted the obvious solution without explaining why.)

提交回复
热议问题