> ## Documentation Index
> Fetch the complete documentation index at: https://docs.virtualityhub.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Code editor

> V-Run's browser-based Python IDE uses Monaco — the engine behind VS Code — with syntax highlighting, autocomplete, diagnostics, and multi-file tabs.

The V-Run workflow editor is built on [Monaco](https://microsoft.github.io/monaco-editor/) — the same editor engine that powers VS Code. You get a full-featured Python development environment in the browser.

## Editor capabilities

* **Syntax highlighting** for Python with full language support
* **Intelligent autocomplete** with context-aware suggestions
* **Error diagnostics** powered by Tree-sitter for real-time syntax analysis
* **Multiple file tabs** — switch between main code, test code, requirements, test requirements, and config YAML
* **Keyboard shortcuts** matching VS Code defaults

## Layout

The editor workspace is divided into three areas:

| Area             | Purpose                                                                                                              |
| ---------------- | -------------------------------------------------------------------------------------------------------------------- |
| **Left panel**   | Tabs for input form, workflow config (environment variables and secrets), API trigger, version control, and AI chat. |
| **Center**       | The Monaco code editor with tabs for main code, tests, requirements, test requirements, and config YAML.             |
| **Bottom panel** | Execution logs, stdout/stderr output, and output files from the latest run.                                          |

## File tabs

### Main code

Your production Python script. This is the code that runs when the workflow is triggered.

### Test code

pytest test files that validate your main code. Run tests from the editor before deploying.

### Requirements

A standard `requirements.txt` file. Any PyPI package is available — packages are installed automatically in the cloud sandbox before execution.

```
requests==2.31.0
beautifulsoup4==4.12.0
pandas==2.1.0
```

### Test requirements

A `requirements-test.txt` file for packages needed only during testing (e.g. `pytest-mock`, `responses`). These are installed alongside your main requirements when running tests.

### Config YAML

Declares inputs, outputs, triggers, timeout, and secrets. See [Workflows](/concepts/workflows) for the full schema.
