Tenjix
Tenjix

Reputation: 569

Unity with Visual Studio: Is "go to declaration" possible?

Is it possible to set up Visual Studio (Community 2015) so that "Go to Definition" behaves as "Go to Declaration" for C# classes provided by the Unity Engine?

I don't want to use MonoDevelop ...

Upvotes: 0

Views: 1120

Answers (1)

tom_mai78101
tom_mai78101

Reputation: 2443

Like what Max von Hippel said, since the declarations are already compiled, there's no way to use Go to Declaration.

The only alternative that I can suggest to you is to use Shift+F12 when your text cursor is on the method name. This will bring up "Find Symbol Results" tab somewhere in Visual Studio (works for 2008, 2010, 2012, and 2015). If you double-click on the result you are looking for, it will automatically jump to where the method is called on, or rather, "referenced at".

Upvotes: 1

Related Questions