macOS 配置 Claude Code Option+P 快捷键指南 在 macOS 上使用 Claude Code 时,Option+P 快捷键可能会被系统拦截,输出 π 字符。本文介绍如何解决这个问题。 问题原因 macOS 默认将 Option 键用于输入特殊字符(如 Option+P = π)。这与终端中 Option 作为 Meta 键的用法冲突。 Cursor 配置方法 1. 打开 Cursor 2. 按 Cmd + Shift + P 打开命令面板 3. 输入 Preferences: Open User Settings (JSON) 4. 添加以下配置: { "terminal.integrated.
Claude Code|添加 sound notification 通知 可以使用 Hooks 为 Claude Code 添加声音通知功能。 Hooks 在 .claude 文件夹中 .settings.local.json 配置文件添加。 "hooks": { "Stop": [ { "hooks": [ { "type": "command", "command": "afplay /System/Library/Sounds/Glass.aiff" } ] } ] }, 声音选择 macOS 系统内置了多种声音,位于 /System/Library/Sounds/: * Glass.aiff -