UK Bebras

 
 

OUCC Tutorials: quick tips

Tutorials index

Widening the Blockly workspace

The space for your blocks can be increased by collapsing the question menu:

hide menu button

Disabling blocks in Blockly

By right-clicking on a block you can disable it:

hide menu button

This is the equivalent of commenting out code in other programming languages.

Try disabling and then enabling different blocks below:

It can be useful to do this when trying to find out which part of your code is doing something unexpected.

In Picture module questions, if one of the shapes you have made is getting in the way of the shadow image you are wanting to see, disabling the blocks that produce your shapes is one way of keeping your blocks and seeing below.

Keyboard shortcuts
Clicking on a block selects it and any blocks it contains. It is now possible to copy, paste and delete with the keyboard in the same way you normally complete these operations on your computer.
e.g. Paste: ctrl-V (or cmd-V on a Mac)

Blockly Documentation
Our Blockly documentation comprises:

  1. The tutorials of which this is the first.
  2. The explanation for each code block found by rolling your mouse over any of the code blocks to see what they can do.
    code block tip

Tutorials index