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

# Code editor & LSP

> Browse files, edit in Monaco, use language intelligence, and run commands in the terminal.

# Code editor & LSP

Switch the workspace right pane to **Code** when you want the file tree, editor, and terminal.

<img src="https://mintcdn.com/mythex/uQE27QrCJJ-e4nfa/images/code-lsp.png?fit=max&auto=format&n=uQE27QrCJJ-e4nfa&q=85&s=058e431b09020749c5fa95158d5aa3f6" alt="Code view in the workspace" width="2880" height="1800" data-path="images/code-lsp.png" />

## What you get

* **File tree** — open and navigate project files
* **Editor** — Monaco-based editing with save shortcuts
* **Language intelligence (LSP)** — completions, diagnostics, and go-to-definition for common languages via the project sandbox (TypeScript/JavaScript, Python, and others depending on the stack)
* **Terminal** — interactive shell in the private workspace

## When to use Code vs chat

| Prefer chat (Build)               | Prefer Code                         |
| --------------------------------- | ----------------------------------- |
| New features, refactors, installs | Tiny one-line tweaks                |
| Fixing Preview from a description | Reading logs in the terminal        |
| Structural file moves             | Go-to-definition while reading code |

## Tips

* Prefer asking Mythex for large changes so checkpoints stay useful
* After installs, watch the terminal for errors
* Use [Restore](/features/chat) on a checkpoint if an edit goes wrong

## Related

* [Preview and Code](/features/preview-and-code)
* [Private workspace](/features/sandbox)
* [Chat](/features/chat)
