-
Notifications
You must be signed in to change notification settings - Fork 123
Exploring Code
Will Fuqua edited this page Jun 14, 2026
·
1 revision
C# REPL includes tools for inspecting objects, documentation, and compiler output. The key bindings below are the defaults; see Keyboard Shortcuts for the full list.
- Enter prints a compact representation of a result.
- Ctrl+Enter prints a detailed view with members, nested values, and stack traces.
- F1: open the MSDN documentation for the type or member under the caret.
- F12 (or Ctrl+F1): open the source code in your browser, when the assembly supports Source Link.
These show how the compiler translates your code, applied to the current statement. Decompilation is powered by ILSpy.
-
F8: show the lowered C#. Compiler-generated constructs are made explicit, including async/await and iterator state machines, lambda closures, and the expansion of
foreach,using, andlock.- Ctrl+F8: lowered C# with Release-mode optimizations.
-
F9: show the IL (intermediate language).
- Ctrl+F9: IL with Release-mode optimizations.
- Ctrl+Space opens the completion menu.
- Documentation and overloads appear as you type.