# 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/a98f0dfa8d534d8a1885b524632400e52db22ac6/libs/code/deepagents_code/editor.py#L30)