用于导航到变量类的 Visual Studio 快捷方式 [英] Visual Studio shortcut to navigate to class of variable

查看:21
本文介绍了用于导航到变量类的 Visual Studio 快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常只需在变量的声明类类型上单击F12即可.

Usually it is a simply as clicking on F12 on the declaration class type of a variable.

然而,随着 var 关键字使用的增加,我想知道 Visual Studio 是否有直接导航到变量类的快捷方式.只是认为它会节省一些时间,而不是使用ctrl+"或查找返回变量的方法.

However with increased usage of the var keyword, I was wondering if visual studio had a shortcut to navigate to the class of a variable directly. Just thought it would save some time instead of using 'ctrl+,' or looking up the method that returned the variable.

推荐答案

var 应该和任何类型一样工作.您可以 ctrl + LeftClick 或按 F12 以进入 var 推断类型的类型定义.

var should work the same as any type. You can ctrl + LeftClick or hit F12 to be taken to the type definition for the inferred type of var.

这篇关于用于导航到变量类的 Visual Studio 快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆