Adding Ctrl-Click “Go To Definition” support to Vi

2019-04-25 09:27发布

问题:

Previously using Visual Studio 2013, I would use the awesome extension from Noah Richards which would add Ctrl-Click as a shortcut for Go To Definition, but he hasnt updated the extension to be compatible with VS2015. And as far as I know, VS2015 doesnt provide any way to have this functionality by default.

回答1:

Install Productivity Power Tools 2015.



回答2:

So here's how I fixed this.

  1. First download Noah Richard's extension from: https://visualstudiogallery.msdn.microsoft.com/4b286b9c-4dd5-416b-b143-e31d36dc622b

  2. Save the .vsix file somewhere on your computer

  3. Open the file with Winzip / Winrar or similar (it's just a disguised .zip file so you could change the extension to .zip)
  4. Open the extension.vsixmanifest file in a text editor
  5. Add the following lines inside the <SupportedProducts>...</SupportedProducts> section:

<VisualStudio Version="14.0"> <Edition>Pro</Edition> </VisualStudio>

  1. Update the zip file with the modified file and change it back to a .vsix file.
  2. Double click the .vsix and install.


回答3:

You can try the Microsoft ctrl+click go to definition extension tool