Docs/Keyboard shortcuts
JSON editor keyboard shortcuts
Every action has a key. On macOS the shortcuts use ⌘ Command; on Windows and Linux they use Ctrl.
Updated
Open this page in the editor
The JSON editor shortcuts you will use most
These keys cover everyday work in JSON Editor Free. The tables below list every action, grouped by task.
- Format (pretty-print) JSON: ⌘I on macOS, Ctrl+I on Windows and Linux.
- Repair broken JSON: ⌘⌥R on macOS, Ctrl+Alt+R on Windows and Linux.
- Search keys and values: ⌘F on macOS, Ctrl+F on Windows and Linux.
- Search and replace: ⌘⌥F on macOS, Ctrl+H on Windows and Linux.
- Undo: ⌘Z on macOS, Ctrl+Z on Windows and Linux.
- Redo: ⌘⇧Z on macOS, Ctrl+Y on Windows and Linux.
- Switch to tree mode: ⌘⌥2 on macOS, Ctrl+Alt+2 on Windows and Linux.
- Switch to text mode: ⌘⌥1 on macOS, Ctrl+Alt+1 on Windows and Linux.
- Compare two JSON documents: ⌘⌥K on macOS, Ctrl+Alt+K on Windows and Linux.
In the editor, press ⌘/ on macOS, Ctrl+/ on Windows and Linux to open this list without leaving your document.
Panels| Action | macOS | Windows and Linux |
|---|
| Move focus to the other panel | F6 | F6 |
| Copy to right | ⌘⇧.or⌥⇧→ | CtrlShift.orAltShift→ |
| Copy to left | ⌘⇧,or⌥⇧← | CtrlShift,orAltShift← |
Modes| Action | macOS | Windows and Linux |
|---|
| Text mode | ⌘⌥1or⌥1 | CtrlAlt1orAlt1 |
| Tree mode | ⌘⌥2or⌥2 | CtrlAlt2orAlt2 |
| Table mode | ⌘⌥3or⌥3 | CtrlAlt3orAlt3 |
| Fold the block at the cursor (text) | ⌘⌥[ | CtrlShift[ |
| Unfold the block at the cursor (text) | ⌘⌥] | CtrlShift] |
| Fold all (text) | ⌃⌥[ | CtrlAlt[ |
| Unfold all (text) | ⌃⌥] | CtrlAlt] |
| Go to the next error | F8 | F8 |
Tree editing| Action | macOS | Windows and Linux |
|---|
| Insert after the selected row | ⌘Enter | CtrlInsertorCtrlEnter |
| Edit the value | Enter | Enter |
| Rename the key | F2 | F2 |
| Duplicate the row | ⌘D | CtrlD |
| Remove the row | ⌘⌫or⌘⌦or⌦ | CtrlDeleteorDelete |
| Move the row up | ⌥⇧↑or⌥↑ | AltShift↑orAlt↑ |
| Move the row down | ⌥⇧↓or⌥↓ | AltShift↓orAlt↓ |
| Expand or collapse (also → and ←) | ⌘E | CtrlE |
| Expand all | ⌘⇧E | CtrlShiftE |
| Collapse all | ⌘⌥E | CtrlAltE |
| Select the previous row | ↑ | ↑ |
| Select the next row | ↓ | ↓ |
| Open the row actions menu | ⇧F10 | ShiftF10 |
Format, compact, repair| Action | macOS | Windows and Linux |
|---|
| Format | ⌘Ior⌥⇧F | CtrlIorAltShiftF |
| Compact | ⌘⇧Ior⌥⇧C | CtrlAltIorAltShiftC |
| Repair | ⌘⌥Ror⌥⇧R | CtrlAltRorAltShiftR |
Compare| Action | macOS | Windows and Linux |
|---|
| Compare on or off | ⌘⌥Kor⌥⇧D | CtrlAltKorAltShiftD |
| Next difference | F7or⌥⇧N | F7orAltShiftN |
| Previous difference | ⇧F7or⌥⇧P | ShiftF7orAltShiftP |
Sort and transform| Action | macOS | Windows and Linux |
|---|
| Sort | ⌘⌥Sor⌥⇧S | CtrlAltSorAltShiftS |
| Transform | ⌘⌥Qor⌥⇧T | CtrlAltQorAltShiftT |
Search and replace| Action | macOS | Windows and Linux |
|---|
| Search | ⌘F | CtrlF |
| Next match (Enter in the search box) | ⌘G | F3orCtrlG |
| Previous match (Shift+Enter in the search box) | ⌘⇧G | ShiftF3orCtrlShiftG |
| Search and replace | ⌘⌥F | CtrlH |
| Replace all (in the replace box) | ⌘⌥Enter | CtrlAltEnter |
Undo and redo| Action | macOS | Windows and Linux |
|---|
| Undo | ⌘Z | CtrlZ |
| Redo | ⌘⇧Z | CtrlYorCtrlShiftZ |
Open and save| Action | macOS | Windows and Linux |
|---|
| Open file | ⌘O | CtrlO |
| Open from URL | ⌘⌥Oor⌥⇧O | CtrlAltOorAltShiftO |
| Paste into the panel | ⌘V | CtrlV |
| Save .json | ⌘S | CtrlS |
| Export CSV | ⌘⇧S | CtrlShiftS |
| Import CSV | ⌘⇧O | CtrlShiftO |
JSON Schema| Action | macOS | Windows and Linux |
|---|
| JSON Schema | ⌘⌥Vor⌥⇧V | CtrlAltVorAltShiftV |
General| Action | macOS | Windows and Linux |
|---|
| Open the documentation | F1 | F1 |
| Keyboard shortcuts | ⌘/ | Ctrl/ |
| Close a dialog or search, cancel an edit | Esc | Esc |
| Pause or play the 3D view motion | ⌥⇧M | AltShiftM |