jsoneditor/docs/key_bindings.md

2.4 KiB

Key bindings

Tree Editor

Name Windows key combination Mac key combination Description
up, down, left, right Alt+Arrows Option+Arrows Move the caret up/down/left/right between fields
duplicate Ctrl+D Command+D Duplicate field
remove Ctrl+Del Command+Del Remove field
openUrl Ctrl+Enter Command+Enter Open link when on a field containing an url
insert Ctrl+Ins Command+Ins Insert a new field with type auto
expand Ctrl+E Command+E Expand or collapse field
end Alt+End Option+End Move the caret to the last field
find Ctrl+F Command+F Find
findNext F3, Ctrl+G F3, Command+G Find next
findPrevious Shift+F3, Ctrl+Shift+G Shift+F3, Command+Shift+G Find previous
home Alt+Home Option+Home Move the caret to the first field
actionMenu Ctrl+M Command+M Show actions menu
undo Ctrl+Z Command+Z Undo last action
redo Ctrl+Shift+Z Command+Shift+Z Redo

Code Editor

The code editor is powered by Ace Editor. This editor's shortcut keys are described here:

https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts

Additionally, there are shortcut keys to format/compact the code:

Name Windows key combination Mac key combination Description
format Ctrl+\ Command+\ Format JSON data, set proper indentation
compact Ctrl+Shift+\ Command+Shift+\ Compact JSON data, remove all whitespace