[英]How to use Visual Studio to view/navigate asp.net core source code?
Currently if you press F12/go to definition, it will show metadata without acutal implementions.目前,如果您按 F12/转到定义,它将显示没有实际实现的元数据。 I know we can go to Github to view the source code but it is hard to navigate source code in browser.我知道我们可以 go 到 Github 来查看源代码,但很难在浏览器中导航源代码。 I can also use debugging with some required setting to view the source code in VS, but I don't want to use debug mode to view source code as I need to run the project, I just want to press F12 to see the source code, is a way to achieve this?我也可以使用调试和一些必需的设置来查看VS中的源代码,但是我不想使用调试模式查看源代码,因为我需要运行项目,我只想按F12查看源代码,是一种实现这一目标的方法吗?
Currently if you press F12/go to definition, it will show metadata without acutal implementions.目前,如果您按 F12/转到定义,它将显示没有实际实现的元数据。
Just press CTRL + F12 instead of just F12 .只需按CTRL + F12而不是F12 。 This will take you directly to the implementation.这将带您直接进入实施。 If there is more than one implementation, it will list all of the implementations so that you can choose.如果有多个实现,它将列出所有实现,以便您选择。
What's the version of your VS?你的VS是什么版本的?
If using VS 2013 and below, you can link to this answer to navigate.如果使用 VS 2013 及更低版本,您可以链接到此答案进行导航。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.