manymanymore
manymanymore

Reputation: 3107

Is there a way to see decompiled C# code in VS Code?

Is there a way to see decompiled C# code in VS Code?

Whenever I go to the decompiled implementation, I see only interfaces of methods, but not the implementation. I heard that some people claim that VS Code can show decompiled implementation as well and was wondering if it is true and how could I enable the feature in VS Code.

Upvotes: 8

Views: 13848

Answers (1)

zanseb
zanseb

Reputation: 1425

I suppose you have installed the omnisharp extension (https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp)

You can turn on the setting "Enable Decompilation Support", which is disabled per default. After turning that on, you should be able to see the decompiled code right away.

enter image description here

You can read more about it here: https://www.strathweb.com/2020/05/decompilation-support-in-omnisharp-and-c-extension-for-vs-code/

Upvotes: 18

Related Questions