If you explore your own assemblies, you may be interested to inspect compiler-generated code. For instance, to see how compiler deals with lambdas, closures, and auto-properties, among other things. For these purposes, dotPeek provides the Show compiler-generated code option that applies globally to all opened decompiled documents in the code viewer and to types and members in the Assembly Explorer window.
By default, this option is turned off and dotPeek tries to display original code constructions where available.
note
The Show compiler-generated code option only applies to decompiled documents. If a document is a source file, this option does not change anything. You can recognize decompiled files by the // Decompiled with JetBrains decompiler comment in the first line. For more information about different ways of viewing code, refer to Presentation options for compiled code.
Show or hide compiler-generated code
Click Turn Compiler-generated Code On/Off on the toolbar.
Tick the Show compiler-generated code checkbox on the Decompiler page of dotPeek options.