Reputation: 145
Is there any way to see a Nuget Package's source code when we choose "Go to Definition" (or F12 or CRTL+click)? At this time, I click (CRTL+click) on some class from Nuget Package in my code and the vscode shows me an assembly summary [metadata], where I can see only docs and methods signature. I'd like to see all the source code from this class. Is there some extension I need to install or I misunderstood some config?
Upvotes: 4
Views: 7021
Reputation: 1949
I believe you can now do this with source link enabled libraries (nuget packages included).
You can have a look at these .NET blog posts from Claire:
With Source Link-enabled libraries, the debugger can download the underlying source files as you step in, and you can set breakpoints/tracepoints like you would with any other source.
Upvotes: 2
Reputation: 870
JetBrains Resharper provides this functionality by decompiling source in Visual Studio. I am not aware of integrated extension for VSCode.
Upvotes: 0