# resolve_editor

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/editor/resolve_editor)

Resolve editor command from environment.

Checks $VISUAL, then $EDITOR, then falls back to platform default.

## Signature

```python
resolve_editor() -> list[str] | None
```

## Returns

`list[str] | None`

Tokenized command list, or `None` if the env var was set but empty after
tokenization.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/3812967c84d90619848f3185f22470204fc88bd8/libs/code/deepagents_code/editor.py#L37)