[英]Implement “Navigate To Definition” (Ctrl+Click) in Visual Studio extension
I am writing a Visual Studio extension and I want to implement the Ctrl + Click command for my own file type.我正在编写一个 Visual Studio 扩展,我想为我自己的文件类型实现 Ctrl + Click 命令。 This is similar to the C#/C++ editor whereby Ctrl + clicking on a type name will take user to the definition of that type (aka. Go To Definition command.)
这类似于 C#/C++ 编辑器,其中 Ctrl + 单击类型名称会将用户带到该类型的定义(又名 Go 到定义命令。)
Is there any sample on how to achieve this?有没有关于如何实现这一目标的样本? I searched on Microsoft Docs website but I couldn't find anything that I want.
我在 Microsoft Docs 网站上进行了搜索,但找不到任何我想要的东西。
Ctrl+Click Go To Definition example from VS Productivity Power Tools may get you started. Ctrl+单击 Go 来自 VS Productivity Power Tools 的定义示例可能会帮助您入门。
Description https://marketplace.visualstudio.com/items?itemName=VisualStudioPlatformTeam.CtrlClickGoToDefinition说明https://marketplace.visualstudio.com/items?itemName=VisualStudioPlatformTeam.CtrlClickGoToDefinition
Source code https://github.com/microsoft/VS-PPT/tree/master/src/GoToDef源代码https://github.com/microsoft/VS-PPT/tree/master/src/GoToDef
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.