Skip to content

Editor ​

Zed ​

配置文件 ​

json
{
    "base_keymap": "JetBrains",
    "ui_font_family": "JetBrains Mono",
    "ui_font_size": 16,
    "buffer_font_size": 16,
    "agent": {
        "default_model": {
            "provider": "deepseek",
            "model": "deepseek-flash"
        }
    },
    "edit_predictions": {
        "allow_data_collection": "no",
        "mode": "subtle",
        "open_ai_compatible_api": {
            "api_url": "https://api.deepseek.com/beta/completions",
            "max_output_tokens": 512,
            "model": "deepseek-flash",
            "prompt_format": "glm"
        },
        "provider": "open_ai_compatible_api"
    },
    "proxy": "http://127.0.0.1:7890"
}

ACP ​

配置文件

Windows

json
{
    "agent_servers": {
        "Codex": {
            "command": "npx",
            "type": "custom",
            "args": ["-y", "@agentclientprotocol/codex-acp"]
        },
        "Claude": {
            "command": "npx",
            "type": "custom",
            "args": ["-y", "@agentclientprotocol/claude-agent-acp"]
        },
        "OpenCode": {
            "command": "opencode.cmd",
            "type": "custom",
            "args": ["acp"]
        }
    }
}

MacOS

json
{
    "agent_servers": {
        "Codex": {
            "command": "npx",
            "type": "custom",
            "args": ["-y", "@agentclientprotocol/codex-acp"]
        },
        "Claude": {
            "command": "npx",
            "type": "custom",
            "args": ["-y", "@agentclientprotocol/claude-agent-acp"]
        },
        "OpenCode": {
            "command": "opencode",
            "type": "custom",
            "args": ["acp"]
        }
    }
}

Lapce ​

代码高亮 ​

https://github.com/lapce/tree-sitter-grammars/releases

MacOS

shell
#
brew install zstd
#
LAPCE_DIR = "$HOME/Library/Application Support/dev.lapce.Lapce-Stable"
mkdir -p "$LAPCE_DIR/grammars" "$LAPCE_DIR/queries"
tar -xf "grammars-macos-aarch64.tar.zst" -C "$LAPCE_DIR/grammars" --strip-components = 1
tar -xf "queries.tar.zst" -C "$LAPCE_DIR/queries" --strip-components = 1
xattr -dr com.apple.quarantine "$LAPCE_DIR/grammars" 2>/dev/null

Windows

shell
$LAPCE_DIR = "$env:APPDATA\\lapce\\Lapce-Stable\\data"
New-Item -ItemType Directory -Force -Path "$LAPCE_DIR\\grammars", "$LAPCE_DIR\\queries" | Out-Null
tar.exe -xf "grammars-windows-x86_64.tar.zst" -C "$LAPCE_DIR\\grammars" --strip-components = 1
tar.exe -xf "queries.tar.zst" -C "$LAPCE_DIR\\queries" --strip-components = 1
Get-ChildItem -Path "$LAPCE_DIR\\grammars" -Recurse | Unblock-File

备选字体 ​

toml
font-family = "Maple Mono Normal NL NF CN, JetBrains Mono, PingFang SC, Microsoft YaHei"
font-family = "JetBrains Mono, PingFang SC"

配置文件 ​

toml
[editor]
font-family = "Maple Mono Normal NL NF CN, JetBrains Mono, PingFang SC, Microsoft YaHei, monospace"
font-size = 16
line-height = 1.4

[core]
auto-reload-plugin = false

[terminal]
font-family = "Maple Mono Normal NL NF CN, JetBrains Mono, monospace"
font-size = 16
line-height = 1.4