# Property editing

In TRIK Studio, there are two ways to edit property values ​​of blocks and links between them:

1. [Using Property Editor panel](#panel).
2. [Directly on the diagram](#diagram).

{% hint style="warning" %}
**Attention!** Editing the properties of the block [Subprogram](https://help.trikset.com/en/studio/blocks#subprogram) is carried out only using the context menu.
{% endhint %}

## Using Property Editor panel <a href="#panel" id="panel"></a>

When a block, link, or element is selected, all the properties of the current element are displayed on the [Property Editor](https://help.trikset.com/en/interface#panel-property-editor) panel.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUQCHWUs7ZRXiFQ5yO_%2F-MUQCPJ45C0PkA0_wTlu%2F26%201%20En%203.png?alt=media\&token=dcab0b4b-44aa-48fb-a42e-c9273a7beaab)

The property editor is a table. In the left column, the property name of the element is displayed, in the right - its value.

You can change the value of any property by clicking on the corresponding cell in the right column and entering the desired value.

For properties that allow only a specific set of values, for example, the “Port” property of the "[Wait for IR distance sensor](https://help.trikset.com/en/trik/programming-visual/blocks#wait-for-infrared-distance)" block, when you try to edit them, a drop-down menu will appear where the desired value is selected:

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUQCHWUs7ZRXiFQ5yO_%2F-MUQCUEqWuf2q5SReBrn%2F26%202%20En%20editing-properties%202.png?alt=media\&token=c955210b-1940-499e-89e8-18b1b8891fb0)

## Property editing on the diagram <a href="#diagram" id="diagram"></a>

To edit properties directly on the diagram:

1. Hover over the value of the desired property.
2. Double-click the left mouse button to activate editing properties.
3. Enter the desired value.
4. Click on any place in the scene.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUQCHWUs7ZRXiFQ5yO_%2F-MUQCXhHe9RNDYGnIBt5%2F26%203%20En%20edit2%202.gif?alt=media\&token=1dd3dd2b-012b-49f4-a360-486a5f043c4e)

{% hint style="danger" %}
**Attention!** This approach can serve as a source of errors, because it allows you to enter an arbitrary text value of the property, including the incorrect one. Be careful.
{% endhint %}
