Search code examples
c#visual-studio-codeimplementationdecompiling

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.


Solution

  • 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/