openhab-docs/mainui/settings/blockly-editor.md

1.7 KiB

layout title
documentation Blockly Editor

Blockly Editor

The Blockly editor is used to create automation using Blockly.

Keyboard Shortcuts

The following is a short overview of the most important keyboard shortcuts.

Mac users should use Cmd instead of Ctrl for most shortcuts.

Panning & Zooming:

  • Click + Drag, Scroll Wheel (mouse), or Two Fingers (trackpad) to pan around.
  • Ctrl + Scroll Wheel or Ctrl + Two Fingers to zoom in and out.

Selection:

  • Click a block to select it.
  • Shift + Click or Shift + Drag: Select multiple blocks.
  • Ctrl + A: Select all blocks.
  • Clicking on an empty area deselects everything.

Deleting Blocks:

  • Delete: Delete the selected blocks.
  • Alternatively, the blocks can be deleted by dragging them into the toolbox area.

Copy & Paste:

  • Ctrl + C: Copy the selected blocks.
  • Ctrl + X: Cut the selected blocks.
  • Ctrl + V: Paste what has been copied.
  • Copied blocks can be pasted into another Blockly script in a different window/tab.

Search:

  • Ctrl+F: Search in blocks.

Redo & Undo:

  • Ctrl + Z: Undo the last change.
  • Ctrl + Y (Shift + Cmd + Z on Mac): Redo the last change.

Commenting:

  • Right click on the block and select Add Comment

Formatting:

  • Right click on an empty area and select Clean up Blocks