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.
First download Noah Richard's extension from: https://visualstudiogallery.msdn.microsoft.com/4b286b9c-4dd5-416b-b143-e31d36dc622b
Save the .vsix file somewhere on your computer
- Open the file with Winzip / Winrar or similar (it's just a disguised .zip file so you could change the extension to .zip)
- Open the extension.vsixmanifest file in a text editor
- Add the following lines inside the
<SupportedProducts>...</SupportedProducts>
section:
<VisualStudio Version="14.0">
<Edition>Pro</Edition>
</VisualStudio>
- Update the zip file with the modified file and change it back to a .vsix file.
- Double click the .vsix and install.
回答3:
You can try the Microsoft ctrl+click go to definition extension tool