# The Pine editor

> Shortcuts, the console, editor settings, and what is still coming. Everything about the panel where you write scripts.

Open the editor from **Pine Script** in the terminal's side rail. It sits over the live chart, so every change runs on real candles.

## Shortcuts

| Keys | Does |
| --- | --- |
| Ctrl Enter (Cmd Enter) | **Add to chart**: run the script on the chart |
| Ctrl S (Cmd S) | **Save** to your account |
| Tab | Insert 4 spaces; with several lines selected, indent them |
| Shift Tab | Outdent the selected lines |
| Enter | New line, keeping the current indentation |
| Esc, then Tab | Leave the text area (Tab alone indents) |
| Esc | Close an open menu |

## The console

The strip under the code reports the last run:

- **Syntax error**, **Script error**, **Timed out** or **Engine error**, with the line and column, a **Go to line** button, and an **Explain** link that opens the [error index](/docs/errors) at that message.
- Warnings, each shown once.
- Alerts your script fired, as title and message.
- "Compiled successfully" or "added to the chart" when all went well.

Save and load problems appear on their own yellow line, so a storage failure is never mistaken for a bug in your code.

## Editor settings

Two settings work today: **Word wrap** and **Line numbers**. The others in the settings panel are shown but not yet available, each with its reason: suggestions as you type (needs a language server), minimap and line-length guide (planned), import hints (libraries are not supported), and diff decorations (needs a history of editor saves).

## The Script menu

Save, Rename, **Version history** (for a saved script, it opens its published versions on your dashboard), **New indicator**, the list of your saved scripts, and **Pine docs**, which opens these docs in a new tab.

## Coming soon

Shown in the editor with a preview of what they will do: Make a copy, a New strategy template, a New library template, Pine logs (a pane for `log.info` and friends), and a Profiler.
