简体   繁体   English

Visual Studio快捷键导航到[return]语句将带我们去哪里?

[英]Visual Studio Shortcut key to navigate to where [return ] statement will take us?

F12那样把我们带到某个东西的definition ,无论如何,在return语句时我按下一个快捷键,它会把我带到返回值的位置?

A function's return goes to anywhere it's called from, it's not any single place. 函数的返回转到它所调用的任何地方,它不是任何一个地方。 You can find wherever a function's called from by using Find All References (Alt+F2 in my mapping, or else right click) on the function definition. 您可以在函数定义中使用“查找所有引用”(在我的映射中使用Alt + F2,或者右键单击)来查找调用函数的任何位置。

If you're in the middle of a debug session and you're inside a function, you can look up one level on the call stack to see where the function's being called from. 如果您正处于调试会话的中间并且您在函数内部,则可以在调用堆栈中查找一个级别以查看函数的调用位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM