Skip to main content

Overview

Code Editor Thing provides keyboard shortcuts for common operations, helping you work efficiently without reaching for the mouse.
Shortcuts use Cmd on macOS and Ctrl on Windows/Linux unless otherwise specified.

File Operations

ShortcutActionDescription
Cmd+O / Ctrl+OOpen FolderOpens a dialog to select a folder to open in the editor
Cmd+S / Ctrl+SSave FileSaves the currently active file to disk

Open Folder Details

Defined in the File menu:
// From electron/main.ts
{
  label: 'Open Folder',
  accelerator: 'CmdOrCtrl+O',
  click: () => openFolder()
}
This shortcut triggers Electron’s native folder picker dialog.

View Management

ShortcutActionDescription
Cmd+B / Command+BToggle SidebarShows or hides the file tree sidebar
Cmd+Shift+T / Command+Shift+TToggle TerminalShows or hides the integrated terminal

Toggle Sidebar

Registered as a global shortcut:
// From electron/main.ts
globalShortcut.register('Command+B', () => { 
  mainWindow?.webContents.send('toggle-sidebar')
})
Also available in the View menu:
{
  label: 'Toggle Sidebar',
  accelerator: 'Command+B',
  click: () => mainWindow?.webContents.send('toggle-sidebar')
}

Toggle Terminal

Registered as a global shortcut:
// From electron/main.ts
globalShortcut.register('Command+Shift+T', () => { 
  mainWindow?.webContents.send('toggle-terminal')
})
Also available in the View menu:
{
  label: 'Toggle Terminal',
  accelerator: 'Command+Shift+T',
  click: () => mainWindow?.webContents.send('toggle-terminal')
}

Editor Shortcuts

These shortcuts are provided by CodeMirror and work within the editor:

Editing

ShortcutAction
Cmd+Z / Ctrl+ZUndo
Cmd+Shift+Z / Ctrl+Shift+ZRedo
Cmd+A / Ctrl+ASelect All
Cmd+C / Ctrl+CCopy
Cmd+X / Ctrl+XCut
Cmd+V / Ctrl+VPaste
ShortcutAction
Cmd+Home / Ctrl+HomeGo to start of document
Cmd+End / Ctrl+EndGo to end of document
Cmd+ArrowLeftGo to start of line
Cmd+ArrowRightGo to end of line
Alt+ArrowLeftMove cursor one word left
Alt+ArrowRightMove cursor one word right

Selection

ShortcutAction
Shift+ArrowKeyExtend selection
Cmd+Shift+ArrowLeftSelect to start of line
Cmd+Shift+ArrowRightSelect to end of line
Alt+Shift+ArrowLeftSelect word left
Alt+Shift+ArrowRightSelect word right

Developer Tools

ShortcutActionDescription
Cmd+Alt+I / Ctrl+Shift+IToggle DevToolsOpens Electron/Chrome developer tools
Available in the View menu:
// From electron/main.ts
{
  label: 'View',
  submenu: [
    // ...
    { role: 'toggleDevTools' }
  ]
}

Application Shortcuts

ShortcutActionPlatform
Cmd+QQuit ApplicationmacOS
Alt+F4Quit ApplicationWindows/Linux
Defined in the File menu:
// From electron/main.ts
{
  label: 'File',
  submenu: [
    { label: 'Open Folder', accelerator: 'CmdOrCtrl+O', click: () => openFolder() },
    { type: 'separator' },
    { role: 'quit' }
  ]
}

Global vs Editor Shortcuts

Global Shortcuts: Registered with Electron and work anywhere in the application
  • Cmd+B (Toggle Sidebar)
  • Cmd+Shift+T (Toggle Terminal)
Menu Shortcuts: Defined in the application menu
  • Cmd+O (Open Folder)
  • Cmd+Q (Quit)
Editor Shortcuts: Handled by CodeMirror within the editor area
  • Cmd+Z (Undo)
  • Cmd+S (Save)
  • All text editing shortcuts

Customizing Shortcuts

Currently, keyboard shortcuts are hardcoded in the application. To customize them:
  1. Edit electron/main.ts
  2. Modify the accelerator values in menu items
  3. Update globalShortcut.register() calls
  4. Rebuild the application
Future versions may include a keyboard shortcut configuration UI.

Platform Differences

macOS

  • Uses Command key for most shortcuts
  • Menu bar always visible
  • Cmd+Q to quit

Windows/Linux

  • Uses Ctrl key for most shortcuts
  • Menu bar can be hidden
  • Alt+F4 to quit

Shortcut Notation

  • CmdOrCtrl: Automatically uses Cmd on macOS, Ctrl elsewhere
  • Command: macOS-specific Cmd key
  • Alt: Option on macOS, Alt on Windows/Linux

Build docs developers (and LLMs) love