Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
喜欢F12那样把我们带到definition某事,无论如何,当return我在声明中按下快捷键时,它会把我带到返回值的地方?
F12
definition
return
一个函数的返回值会转到它被调用的任何地方,它不是任何一个地方。您可以通过在函数定义上使用查找所有引用(在我的映射中为 Alt+F2,或者右键单击)来找到调用函数的位置。
如果您正处于调试会话的中间并且您在一个函数中,您可以在调用堆栈上查找一层以查看从何处调用该函数。