{"name":"EDITOR","slug":"editor","family":"env","title":"Environment variables","noun":"environment variable","description":"Editor command Claude Code uses when `VISUAL` is unset: its editor lookup takes `VISUAL`, then `EDITOR`, then the first of `code`, `vi` and `nano` it finds. When `\/memory` opens a file this way it prints `Using $EDITOR=\"...\"`, and the value (after `VISUAL`) is recorded as `editor` in the terminal environment info.","description_source":"code","described_by":{"bundle":"2.1.286","author":"claude-opus-5-5"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":150,"mined_builds":150,"first_cited":null},"aliases":[],"entries":[{"version":"1.0.116","anchor":"optimized-editor-selection","heading":"Optimized Editor Selection","line":null,"released_at":"2025-09-16 22:02:38","reason":"found in this entry's text"}],"entries_total":1,"docs":[{"source":"api","path":"about-claude\/models\/migration-guide","title":"Or, for the model with the same capabilities and no access approval requirement:","documented":false},{"source":"api","path":"about-claude\/models\/optimizing-for-cost-and-intelligence","title":"optimizing-for-cost-and-intelligence","documented":false},{"source":"api","path":"about-claude\/pricing","title":"pricing","documented":false},{"source":"api","path":"agents-and-tools\/tool-use\/bash-tool","title":"bash-tool","documented":false},{"source":"api","path":"agents-and-tools\/tool-use\/browser-use-sdk","title":"browser-use-sdk","documented":false},{"source":"api","path":"agents-and-tools\/tool-use\/browser-use-tool","title":"browser-use-tool","documented":false},{"source":"api","path":"agents-and-tools\/tool-use\/code-execution-tool","title":"code-execution-tool","documented":false},{"source":"api","path":"agents-and-tools\/tool-use\/computer-use-tool","title":"computer-use-tool","documented":false},{"source":"api","path":"agents-and-tools\/tool-use\/define-tools","title":"define-tools","documented":false},{"source":"api","path":"agents-and-tools\/tool-use\/how-tool-use-works","title":"how-tool-use-works","documented":false}],"docs_total":12,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/editor","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}