I am writing a Visual Studio extension and I want to implement the Ctrl + Click command for my own file type. 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.)
Is there any sample on how to achieve this? I searched on Microsoft Docs website but I couldn't find anything that I want.
-
Forgot to say that I also want to make the text under cursor become a hyperlink when user presses Ctrl and mouse over the text.superkinhluan– superkinhluan2021年03月24日 18:57:28 +00:00Commented Mar 24, 2021 at 18:57
1 Answer 1
Ctrl+Click Go To Definition example from VS Productivity Power Tools may get you started.
Description https://marketplace.visualstudio.com/items?itemName=VisualStudioPlatformTeam.CtrlClickGoToDefinition
Source code https://github.com/microsoft/VS-PPT/tree/master/src/GoToDef
2 Comments
Explore related questions
See similar questions with these tags.