☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

tab_size

Table of contents

Description:

This key defines the number of spaces inserted when the Tab key is pressed in a Code Input.

The value is a number representing the number of spaces. This affects both indentation behavior and how existing tabs are displayed.

Appears in:
└── _inputs
    └── *
        └── Code Input
            └── options
                └── tab_size
Type:
number
Default value:
2
Examples:

In this example, we have configured a code input to use 4 spaces for indentation instead of the default 2.

Copied to clipboard
_inputs:
  python_code:
    type: code
    label: Python Code
    options:
      tab_size: 4
{
  "_inputs": {
    "python_code": {
      "type": "code",
      "label": "Python Code",
      "options": {
        "tab_size": 4
      }
    }
  }
}
Open in a new tab