Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Context EditorNew to Visual Studio Code? Get it now.
Context Editor

Context Editor

piratf

|
4 installs
| (0) | Free
Dedicated visual editor for Claude Code. Orchestrate nested CLAUDE.md trees, MCP servers, and global project settings in a unified VS Code sidebar.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Context Editor Icon

Context Editor

Version License VS Code Version Status: MVP

English | 简体中文


English

A visual configuration manager designed for Claude Code

Manage your CLAUDE.md instruction trees, MCP server configurations, and global project settings in a unified VS Code sidebar

[!WARNING] This version is MVP (Minimum Viable Product)

You can now edit all your CLAUDE.md files in one place! More features are under development.

✨ Key Features

  • 🌳 Unified View - Dual-view design managing both global configuration and project registry
  • 🔍 Auto Discovery - Automatically parses project configurations from ~/.claude.json
  • 🔄 Real-time Refresh - One-click refresh to apply changes instantly
  • 📂 Direct File Access - Double-click to open any configuration file in the editor
  • 🛠️ Debug Friendly - Built-in Debug Output panel for troubleshooting
  • 🎨 Native Experience - Seamlessly integrates with VS Code's native interface

📸 Interface Preview

Dual-View Design

Global Persona Displays ~/.claude.json file content and ~/.claude/ directory tree structure

Project Registry Shows all registered Claude Code projects and their configuration files

📁 Project Structure Example
Context Editor
├── 🌍 Global Persona
│   ├── ~/.claude.json
│   └── ~/.claude/
│       ├── settings.json
│       └── skills/
└── 📦 Project Registry
    ├── project-alpha
    │   └── .claude/settings.json
    ├── project-beta
    │   ├── CLAUDE.md
    │   └── .claude/settings.json
    └── project-gamma
        └── .claude/context.json

📦 Installation & Usage

Option 1: Install from VS Code Marketplace

  1. Open VS Code Extensions panel (Ctrl+Shift+X / Cmd+Shift+X)
  2. Search for Context Editor
  3. Click Install

Option 2: Manual Installation

  1. Download the latest .vsix file
  2. In VS Code Extensions panel, click "..." → "Install from VSIX..."
  3. Select the downloaded .vsix file

Getting Started

  1. Activate Extension - Extension auto-activates on VS Code startup
  2. Open View - Click the Context Editor icon (home icon) in the activity bar
  3. Browse Configuration - View two panels in the sidebar:
    • Global Persona: Global configuration
    • Project Registry: Project list
  4. Open Files - Double-click any file to open it in the editor

Available Commands

Command Shortcut Description
Context Editor: Refresh Click refresh icon in view title Refresh configuration view
Context Editor: Show Debug Output Command Palette (Ctrl+Shift+P) Show debug output panel

⚙️ Extension Settings

No additional configuration required. The extension works out of the box.

It automatically reads the following Claude Code configuration files:

~/.claude.json          # Claude Code main configuration file
~/.claude/              # Global configuration directory
~/.claude/settings.json # Global settings
📋 Supported Project Registration Formats

The extension automatically recognizes two project registration formats in ~/.claude.json:

Array Format

{
  "projects": [
    {"path": "/path/to/project1"},
    {"path": "/path/to/project2"}
  ]
}

Record Format

{
  "projects": {
    "project1": {"path": "/path/to/project1"},
    "project2": {"path": "/path/to/project2"}
  }
}

🚧 Known Limitations

[!NOTE] This extension is currently in MVP stage. The following features are under development:

  • [ ] MCP server configuration visualization
  • [ ] Permission management UI
  • [ ] Instruction inheritance chain visualization
  • [ ] Built-in configuration file editor
  • [ ] JSON Schema validation integration
  • [ ] Configuration search and filtering

If you have feature suggestions or encounter bugs, please submit an Issue.

🛠️ Development

Tech Stack

  • TypeScript - Strict mode with full type safety
  • VS Code Extension API - Native extension development
  • ESLint + Prettier - Code quality assurance
  • Mocha - Unit and integration testing
  • Husky + lint-staged - Git Hooks automation

Development Setup

# Clone repository
git clone https://github.com/piratf/context-editor.git
cd context-editor

# Install dependencies
npm install

# Compile project
npm run compile

# Run tests
npm test

# Lint code
npm run lint

# Format code
npm run lint:fix

# Watch mode compilation
npm run watch

Git Hooks

  • pre-commit: Automatically runs ESLint and Prettier
  • pre-push: Automatically runs tests (can be skipped with SKIP_TESTS=1 git push)

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork this repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Create a Pull Request

📂 Project Structure

context-editor/
├── src/
│   ├── extension.ts              # Extension entry point
│   ├── services/
│   │   └── claudeConfigReader.ts # Claude config reader
│   ├── views/
│   │   ├── globalProvider.ts     # Global configuration view
│   │   └── projectProvider.ts    # Project registry view
│   └── types/
│       └── claudeConfig.ts       # Claude config type definitions
├── resources/
│   └── icon.png                  # Extension icon
├── docs/                         # Product documentation
│   ├── PRD.md                    # Product requirements document
│   └── claude-code-storage-design.md
├── .github/workflows/
│   └── ci.yml                    # CI configuration
├── package.json
├── tsconfig.json
└── eslint.config.mjs

📄 License

This project is licensed under MPL-2.0.

🔗 Related Links

  • VS Code Marketplace
  • GitHub Repository
  • Issue Tracker
  • Claude Code Documentation

简体中文

专为 Claude Code 打造的可视化配置管理器

在统一的 VS Code 侧边栏中管理你的 CLAUDE.md 指令树、MCP 服务器配置和全局项目设置

[!WARNING] 当前版本为 MVP (最小可行性产品)

可以在一个地方编辑所有 CLAUDE.md 了!更多功能正在开发中。

✨ 核心特性

  • 🌳 统一视图 - 双视图设计,同时管理全局配置和项目注册
  • 🔍 自动发现 - 自动解析 ~/.claude.json 中的项目配置
  • 🔄 实时刷新 - 一键刷新配置视图,即时生效
  • 📂 文件直达 - 双击即可打开任意配置文件进行编辑
  • 🛠️ 调试友好 - 内置 Debug Output 面板,方便问题排查
  • 🎨 原生体验 - 完美集成 VS Code 原生界面风格

📸 界面预览

双视图设计

Global Persona(全局配置视图) 显示 ~/.claude.json 文件内容和 ~/.claude/ 目录树结构

Project Registry(项目注册视图) 展示所有已注册的 Claude Code 项目及其配置文件

📁 项目结构示例
Context Editor
├── 🌍 Global Persona
│   ├── ~/.claude.json
│   └── ~/.claude/
│       ├── settings.json
│       └── skills/
└── 📦 Project Registry
    ├── project-alpha
    │   └── .claude/settings.json
    ├── project-beta
    │   ├── CLAUDE.md
    │   └── .claude/settings.json
    └── project-gamma
        └── .claude/context.json

📦 安装与使用

方式一:从 VS Code Marketplace 安装

  1. 打开 VS Code 扩展面板(Ctrl+Shift+X / Cmd+Shift+X)
  2. 搜索 Context Editor
  3. 点击 安装

方式二:手动安装

  1. 从 Releases 下载最新的 .vsix 文件
  2. 在 VS Code 扩展面板点击 "..." → "从 VSIX 安装..."
  3. 选择下载的 .vsix 文件

使用步骤

  1. 激活扩展 - 扩展会在 VS Code 启动时自动激活
  2. 打开视图 - 点击活动栏中的 Context Editor 图标(首页图标)
  3. 浏览配置 - 在侧边栏中查看两个视图:
    • Global Persona:全局配置
    • Project Registry:项目列表
  4. 打开文件 - 双击任意文件即可在编辑器中打开

可用命令

命令 快捷方式 说明
Context Editor: Refresh 点击视图标题栏刷新图标 刷新配置视图
Context Editor: Show Debug Output 命令面板 (Ctrl+Shift+P) 显示调试输出面板

⚙️ 扩展配置

目前本扩展无需额外配置,安装后即可使用。

扩展会自动读取以下 Claude Code 配置文件:

~/.claude.json          # Claude Code 主配置文件
~/.claude/              # 全局配置目录
~/.claude/settings.json # 全局设置
📋 支持的项目注册格式

扩展自动识别 ~/.claude.json 中的两种项目注册格式:

数组格式

{
  "projects": [
    {"path": "/path/to/project1"},
    {"path": "/path/to/project2"}
  ]
}

记录格式

{
  "projects": {
    "project1": {"path": "/path/to/project1"},
    "project2": {"path": "/path/to/project2"}
  }
}

🚧 已知限制

[!NOTE] 本扩展目前处于 MVP 阶段,以下功能正在开发中:

  • [ ] MCP 服务器配置可视化
  • [ ] 权限管理 UI
  • [ ] 指令继承链可视化
  • [ ] 内置配置文件编辑器
  • [ ] JSON Schema 校验集成
  • [ ] 配置搜索和过滤功能

如果你有功能建议或遇到 Bug,欢迎提交 Issue。

🛠️ 开发

技术栈

  • TypeScript - 严格模式,完整类型安全
  • VS Code Extension API - 原生扩展开发
  • ESLint + Prettier - 代码质量保障
  • Mocha - 单元测试和集成测试
  • Husky + lint-staged - Git Hooks 自动化

开发环境设置

# 克隆仓库
git clone https://github.com/piratf/context-editor.git
cd context-editor

# 安装依赖
npm install

# 编译项目
npm run compile

# 运行测试
npm test

# 代码检查
npm run lint

# 代码格式化
npm run lint:fix

# 监听模式编译
npm run watch

Git Hooks

  • pre-commit:自动运行 ESLint 和 Prettier
  • pre-push:自动运行测试(可通过 SKIP_TESTS=1 git push 跳过)

贡献指南

欢迎贡献!请遵循以下流程:

  1. Fork 本仓库
  2. 创建功能分支(git checkout -b feature/amazing-feature)
  3. 提交更改(git commit -m 'feat: add amazing feature')
  4. 推送到分支(git push origin feature/amazing-feature)
  5. 创建 Pull Request

📂 项目结构

context-editor/
├── src/
│   ├── extension.ts              # 扩展入口点
│   ├── services/
│   │   └── claudeConfigReader.ts # Claude 配置读取器
│   ├── views/
│   │   ├── globalProvider.ts     # 全局配置视图
│   │   └── projectProvider.ts    # 项目注册视图
│   └── types/
│       └── claudeConfig.ts       # Claude 配置类型定义
├── resources/
│   └── icon.png                  # 扩展图标
├── docs/                         # 产品文档
│   ├── PRD.md                    # 产品需求文档
│   └── claude-code-storage-design.md
├── .github/workflows/
│   └── ci.yml                    # CI 配置
├── package.json
├── tsconfig.json
└── eslint.config.mjs

📄 许可证

本项目采用 MPL-2.0 许可证 开源。

🔗 相关链接

  • VS Code Marketplace
  • GitHub 仓库
  • 问题反馈
  • Claude Code 文档

Made with ❤️ by piratf

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft