Editor Shortcuts
Text Selection
Select All
Select All
Shortcut:
Ctrl+A (Windows/Linux) or Cmd+A (Mac)Select all text in the editor.Select Line
Select Line
Shortcut:
Ctrl+L (Windows/Linux) or Cmd+L (Mac)Select the entire current line.Expand Selection
Expand Selection
Shortcut:
Shift+Arrow KeysExpand selection character by character or line by line.Select Word
Select Word
Shortcut:
Ctrl+Shift+Left/Right (Windows/Linux) or Cmd+Shift+Left/Right (Mac)Select words at a time.Copy, Cut, and Paste
Copy
Ctrl+C / Cmd+CCopy selected textCut
Ctrl+X / Cmd+XCut selected textPaste
Ctrl+V / Cmd+VPaste from clipboardUndo and Redo
| Action | Windows/Linux | Mac |
|---|---|---|
| Undo | Ctrl+Z | Cmd+Z |
| Redo | Ctrl+Y or Ctrl+Shift+Z | Cmd+Shift+Z |
CodeInk maintains a full undo/redo history for each document. Changes are preserved even after auto-save.
Line Manipulation
Delete Line
Delete Line
Shortcut:
Ctrl+Shift+K (Windows/Linux) or Cmd+Shift+K (Mac)Delete the entire current line.Move Line Up
Move Line Up
Shortcut:
Alt+UpMove the current line up by one position.Move Line Down
Move Line Down
Shortcut:
Alt+DownMove the current line down by one position.Duplicate Line
Duplicate Line
Shortcut:
Ctrl+Shift+D (Windows/Linux) or Cmd+Shift+D (Mac)Duplicate the current line or selection.Indentation
| Action | Shortcut |
|---|---|
| Indent | Tab |
| Outdent | Shift+Tab |
| Indent More | Ctrl+] / Cmd+] |
| Indent Less | Ctrl+[ / Cmd+[ |
Navigation Shortcuts
Cursor Movement
Move by Character
Left/Right Arrow KeysMove cursor one character at a timeMove by Line
Up/Down Arrow KeysMove cursor one line at a timeMove by Word
Ctrl+Left/Right (Windows/Linux)Alt+Left/Right (Mac)Jump between wordsJump to Line Start/End
Home / EndJump to beginning or end of lineDocument Navigation
| Action | Windows/Linux | Mac |
|---|---|---|
| Jump to Document Start | Ctrl+Home | Cmd+Home or Cmd+Up |
| Jump to Document End | Ctrl+End | Cmd+End or Cmd+Down |
| Page Up | Page Up | Page Up |
| Page Down | Page Down | Page Down |
Markdown-Specific Shortcuts
CodeMirror’s markdown mode includes smart behaviors for markdown editing:Lists
Continue List
Continue List
Shortcut:
Enter (at end of list item)Automatically continues lists with the appropriate marker:Exit List
Exit List
Shortcut:
Enter twice (on empty list item)Press Enter twice on an empty list item to exit the list.Indent List Item
Indent List Item
Shortcut:
TabIndent a list item to create a nested list:Outdent List Item
Outdent List Item
Shortcut:
Shift+TabOutdent a nested list item.Code Blocks
Search Shortcuts
CodeMirror includes built-in search functionality:| Action | Windows/Linux | Mac |
|---|---|---|
| Find | Ctrl+F | Cmd+F |
| Find Next | Ctrl+G or F3 | Cmd+G |
| Find Previous | Ctrl+Shift+G or Shift+F3 | Cmd+Shift+G |
| Replace | Ctrl+H | Cmd+Alt+F |
The search panel appears at the top of the editor with options for case sensitivity and regex matching.
CodeInk-Specific Shortcuts
Status Bar Actions
Close Info Popup
EscapeClose the document info popup if openFix Lint Issues
Click “Fix” button in status barAutomatically fix common markdown linting issues
Lint Fix Implementation
The lint fix button in the status bar runs automated fixes:- Adding blank lines around headings
- Fixing list indentation
- Normalizing heading hierarchy
- Standardizing list markers
Multi-Cursor Editing
CodeMirror supports advanced multi-cursor editing:Custom Keybindings
CodeInk uses CodeMirror’s default keybindings from thebasicSetup extension:
Comments
Platform Differences
Key Naming
| Windows/Linux | Mac | Description |
|---|---|---|
Ctrl | Cmd | Primary modifier key |
Alt | Option | Secondary modifier key |
Win | Cmd | System key (rarely used) |
Common Patterns
Windows/Linux Pattern
Most shortcuts use
Ctrl as the primary modifier:Ctrl+C: CopyCtrl+V: PasteCtrl+Z: Undo
Mac Pattern
Most shortcuts use
Cmd as the primary modifier:Cmd+C: CopyCmd+V: PasteCmd+Z: Undo
Editor Configuration
CodeInk’s editor setup includes these keyboard-friendly features:What basicSetup Includes
- Full undo/redo history
- Search and replace
- Multi-cursor support
- Bracket matching
- Auto-indentation
- Line numbers
- Default keybindings
Accessibility
CodeInk’s editor is keyboard-accessible:- Tab Navigation: Move focus between UI elements
- Arrow Keys: Navigate within the editor
- Screen Reader Support: CodeMirror includes ARIA labels
- No Mouse Required: All features accessible via keyboard
The editor automatically captures keyboard focus when you navigate to the editor page.
Tips for Efficiency
Learn Word Navigation
Using
Ctrl/Cmd+Arrow to jump between words is much faster than holding arrow keys.Master Line Manipulation
Alt+Up/Down to move lines and Ctrl/Cmd+Shift+K to delete lines can save tons of time.Use Multi-Cursor
For repetitive edits, multi-cursor mode (
Alt/Option+Click) is incredibly powerful.Leverage List Continuation
Let the editor auto-continue your lists by just pressing Enter at the end of list items.