# Editor

The Sling Data Platform Editor is a powerful tool for creating and editing replications. It allows you to visually build replications by incorporating an IDE like experience:

* Live compilation of replications
* Interactive visual editor for building replications
* Auto-complete for source and target objects
* Syntax highlighting for SQL and Sling
* Validation for your replications

![Sling Platform Editor](/files/kfYR7zjjghKXNBeqXq1I)

## Referring to Query Files

In order to refer to query files (to avoid putting large SQL text in your replication YAML), you can specify query files that exist in your project. Always use the relative path to the file from the root of your project. For example, the file `my_long_query.sql` below is in folder `queries` in the root:

```yaml
source: MY_SOURCE
target: MY_TARGET

streams:
  my_custom_stream:
    sql: 'file://queries/my_long_query.sql'
```

## Managing Jobs

You can manage your jobs by clicking on the `Jobs` button on the bottom bar. This allows you to see the status of your jobs, as well as creating new jobs.

<div align="center"><img src="/files/7SWxWFMe0qftSXhLeQrS" alt="Sling Platform Editor Jobs" width="500"></div>

### Using a Specific Sling CLI Version

By default, any job will use the latest Sling CLI version to run the jobs. If you'd like to specify a specific version to use, you can do so with:

<div align="center"><img src="/files/GoWl9udIJZ7V2jsbQCVi" alt="Specific version"></div>

### Using the Dev Build

You can set your job to use the latest dev build (which is a preview of the upcoming release).

<div align="center"><img src="/files/kM8aiJCDpt5buuLmipea" alt="Setting the env var"></div>

## Job Run History

You can view the history of your jobs by clicking on the `History` button on the bottom bar. This allows you to see the status of your job runs, as well as details about each run.

![Sling Platform Job Run Details](/files/r8hm3AL1LQQWbRVq11Ut)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.slingdata.io/sling-platform/platform/editor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
