Skip to content

Keyboard Keys

Extension: pymdownx.keys

Render keyboard shortcuts and key combinations with styled key caps.

Examples

  • Copy: Ctrl+C (or Cmd+C on macOS)
  • Paste: Ctrl+V
  • Save: Ctrl+S
  • Command palette: Cmd+Shift+P
  • Find: Ctrl+F
  • Undo: Ctrl+Z
- Copy: ++ctrl+c++ (or ++cmd+c++ on macOS)
- Paste: ++ctrl+v++
- Save: ++ctrl+s++
- Command palette: ++cmd+shift+p++
- Find: ++ctrl+f++
- Undo: ++ctrl+z++

Syntax

Wrap key names in ++ and separate combinations with +:

++key++            <!-- single key -->
++ctrl+c++         <!-- key combination -->
++cmd+shift+p++    <!-- three-key combination -->