Skip to content

Keyboard Shortcuts

Will Fuqua edited this page Jun 21, 2026 · 3 revisions

Keyboard Shortcuts

C# REPL aims for an editing experience similar to Visual Studio. Several key bindings can be customized; see Configuring CSharpRepl.

Basic usage

  • Enter: run the current line if it is a complete statement, otherwise add a newline
  • Ctrl+Enter or Ctrl+Alt+Enter: run and show a detailed representation of the result
  • Shift+Enter or Alt+Enter: insert a newline without running
  • Ctrl+C: cancel the current line (or copy when text is selected)
  • Ctrl+L or clear: clear the screen
  • Ctrl+D or exit: exit the REPL
  • Ctrl+Z / Ctrl+Y: undo / redo
  • Ctrl+Alt+Space: request an AI completion at the caret, then Tab to accept (needs an AI provider API key; see AI Completions)

Editing and clipboard

  • Ctrl+Shift+C: copy the entire current input
  • Ctrl+X: cut the selection, or the current line if nothing is selected
  • Shift+Delete: cut the current line
  • Ctrl+V, Shift+Insert, Ctrl+Shift+V: paste (leading indentation is trimmed)
  • Ctrl+A: select all
  • Ctrl+Backspace / Ctrl+Delete: delete the word to the left / right
  • Ctrl+K / Ctrl+U: delete to the end / start of the line
  • Ctrl+Left / Ctrl+Right: move one word left / right
  • Tab / Shift+Tab: indent / unindent the selected lines (when nothing is selected, Tab inserts indentation)

History

  • Up / Down: cycle backward / forward through previous input

Code actions

  • F1: open MSDN documentation for the type or member under the caret
  • F12 or Ctrl+F1: open source via Source Link
  • F8 / Ctrl+F8: lowered C# (Debug / Release)
  • F9 / Ctrl+F9: IL (Debug / Release)

Autocompletion

  • Ctrl+Space: open the completion menu
  • Enter or Tab: accept the selected option
  • Escape: close the menu

Emacs-style alternatives

  • Ctrl+B / Ctrl+F: move by character
  • Alt+B / Alt+F: move by word
  • Ctrl+P / Ctrl+N: previous / next line

Clone this wiki locally