Installation and start
The installer-based distribution is a safe bet if you want to use dotPeek on a single computer and take advantage of automatic version management.
The portable distribution is a better fit if you prefer to share dotPeek between multiple machines - for example, using a flash drive or Dropbox folder.
In dotPeek, you can control everything with shortcuts. Note that dotPeek provides two keyboard schemes inherited from JetBrains ReSharper. First of all, you may want to study the shortcuts assigned to dotPeek commands in both of these schemes. As soon as you choose, which scheme you prefer to use, select these scheme on the page of dotPeek options. As you study these help pages, you can choose your preferred scheme on the top-right corner of the page so that shortcuts from this scheme are displayed to you.
You can quickly configure code viewer preferences - such as whether to wrap long lines or display line numbers - in theand menu.
Besides decompiling library code, by default, dotPeek automatically finds, fetches, and displays original source files if they are available locally or on a symbol server. If you want to see only decompiled code, clear the Use sources from symbol files when available checkbox on the page of dotPeek options.
To start working with any assembly, you need to open it in the Assembly Explorer. When you launch dotPeek for the first time, you will see that main system assemblies are already loaded into this window. If necessary, you can load more assemblies you want to explore - click Open on the Assembly Explorer toolbar and then select an assembly file, or just drag assembly files to the Assembly Explorer window.
As soon as the desired assembly appears in the Assembly Explorer, you can start studying its contents by successively expanding nodes displayed under the assembly: namespaces, types and delegates, and type members.
You can double-click types and type members to display decompiled code (or code from original source files if they are available) in the code viewer.
Under assembly node, you can also find the References and Resources nodes. Double-clicking a reference loads the referenced assembly, if immediately available; double-clicking an entry under the Resources node opens the source representation of the corresponding resource in the code viewer, or passes it to an external application.
Under type and delegate nodes, you will see the Base types node that can be expanded to show base types and inheritors of the current type. This is a way to browse type inheritance trees that developers with .NET Reflector background usually find appealing.
View source code
Assembly code is presented as C# in the Code Viewer, which has the look and feel of editor tabs in Visual Studio. Code syntax is highlighted ReSharper-style, with distinctive colors for properties, types, accessors, and methods. When you put the caret at a delimiter, be it a brace or parenthesis, it gets highlighted along with its counterpart, bringing focus to the scope of the particular code block you're in.
If you need to copy some code, you can select the desired piece with Extend/shrink selection shortcuts Control+W/ Control+Shift+W or with the Select containing declaration shortcut Control+Shift+OemOpenBrackets.
To learn more about symbols without opening their declarations, use the Quick Documentation command Control+Q.
Navigate and search
dotPeek is much more than a decompiler thanks to its advanced features. With dotPeek, you can also: