Feature Request: Support external editor for file editing operations
Resolved 💬 3 comments Opened Nov 3, 2025 by codemedic Closed Jan 12, 2026
Feature Request: Support External Editor for File Editing
Problem
The EDITOR environment variable in ~/.claude/settings.json currently only affects bash commands that spawn editors (like git commit), but does not control how Claude Code edits files when using the Edit/Write tools or when editing agent/subagent markdown definitions.
Current Behavior
- Setting
"env": { "EDITOR": "vscode --wait" }in settings.json works for bash subprocesses - Claude Code uses internal Edit/Write tools that directly modify files
- No way to open files in an external editor (VSCode, vim, etc.) during Claude Code operations
Requested Behavior
Add configuration option(s) to allow Claude Code to open an external editor for file modifications, such as:
{
"useExternalEditor": true,
"externalEditor": "vscode --wait",
"externalEditorFor": ["agents", "subagents", "all"]
}
Use Cases
- Agent/Subagent Definition Editing: When editing
.claude/agents/*.mdfiles, open in configured editor - General File Editing: Optionally use external editor for all file modifications
- User Preference: Some users prefer their configured editor with syntax highlighting, extensions, and familiar keybindings
Benefits
- Consistent editing experience across all development workflows
- Leverage existing editor configurations and plugins
- Better for complex edits or multi-file changes
- Respects user's editor preferences
Current Workaround
Users must manually edit files outside of Claude Code's flow, which breaks the interactive workflow.
---
Environment:
- OS: Linux
- Claude Code version: Latest
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗