简体   繁体   English

“转到类型定义”上下文菜单项在哪里?

[英]Where is the “Go To Type Definition” context menu item?

There used to be a handy little context menu item "Go To Type Definition". 曾经有一个方便的小上下文菜单项“转到类型定义”。 When I would right-click on a variable, for instance, I could use this to go to its type definition instead of the variable definition itself. 例如,当我右键单击一个变量时,我可以使用它来转到它的类型定义而不是变量定义本身。 However, this is no longer available: 但是,这已不再可用:

在此输入图像描述

If I go to "Tools > Customize > Commands", it shows that the tool should be in the list: 如果我转到“工具>自定义>命令”,则表明该工具应该在列表中:

在此输入图像描述

What am I missing? 我错过了什么? That was a very convenient feature. 这是一个非常方便的功能。

UPDATE: I realized where I used to use it. 更新:我意识到我曾经使用过它。 It's available in VB: 它在VB中可用:

在此输入图像描述

How do I make it available in C#? 如何在C#中使用它?

  1. Open Tools -> Customize -> Commands tab 打开Tools - > Customize - > Commands选项卡
  2. Select Context menu radio button 选择Context menu单选按钮
  3. Select Editor Context Menu | Code Window 选择Editor Context Menu | Code Window Editor Context Menu | Code Window
  4. Click Add Command... button 单击Add Command...按钮
  5. Select Edit in Categories list 选择Edit Categories列表
  6. Select Go To Type... in Commands list 在“ Commands列表中选择“ Go To Type...
  7. Click OK for Add Command window 单击OKAdd Command窗口
  8. Click Close for Customize window 单击“ Close Customize窗口
  9. Enjoy! 请享用!

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

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