Skip to content

Exploring Code

Will Fuqua edited this page Jun 14, 2026 · 1 revision

Exploring Code

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.

Object output

  • Enter prints a compact representation of a result.
  • Ctrl+Enter prints a detailed view with members, nested values, and stack traces.

Documentation and source

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

IL and lowered C#

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, and lock.
    • Ctrl+F8: lowered C# with Release-mode optimizations.
  • F9: show the IL (intermediate language).
    • Ctrl+F9: IL with Release-mode optimizations.

IntelliSense

  • Ctrl+Space opens the completion menu.
  • Documentation and overloads appear as you type.

Clone this wiki locally