Chapter 17 · Settings and tools设置与工具設定與工具

Keyboard shortcuts快捷键管理快速鍵管理

Default bindings, the shortcut editor, conflict detection and JSON import/export.默认绑定、快捷键编辑器、冲突检测与 JSON 导入导出。預設綁定、快速鍵編輯器、衝突檢測與 JSON 導入導出。

Where to edit

Macro → Manage Macros → Shortcuts opens the shortcut editor. The same tab contains macro management, mirroring the Notepad++ layout.

Default bindings

ActionShortcut
New / Open / Save⌘N / ⌘O / ⌘S
Save As / Save All⌘⇧S / ⌘⌥S
Close tab / Close window⌘⌥W / ⌘W
Find / Replace⌘F / ⌘⌥F
Find next / previous⌘G / ⌘⇧G
Go to line⌘L
Toggle sidebar⌘⇧B
Word wrap⌘⇧W
Split view⌘\
Zoom in / out⌘+ / ⌘-
Duplicate / delete line⌘⇧D / ⌘⇧K
Indent / unindent⌘] / ⌘[
Toggle comment⌘/
Move line up / down⌥↑ / ⌥↓
Uppercase / lowercase⌘⇧U / ⌘⇧L
Record / play macro⌥⇧⌘R / ⌥⇧⌘P
Next / previous bookmark⌘⇧N / ⌘⇧P

These are the shipped defaults; every entry can be changed.

Editing a binding

  1. Search for the action by name.
  2. Click the binding and press the new combination; it is captured, not typed.
  3. If the chord is already used, a conflict is reported and you choose whether to override.

Reset and export

  • Single action reset, or reset all to defaults.
  • Export the whole set to JSON and import it on another Mac.
  • The exported file records the app identifier, so an unrelated JSON file is rejected.

Known collisions

Two actions may ship with the same chord where a legacy workflow demanded it. The conflict detector flags these; assigning a free chord to the one you use is the intended fix.

在哪里编辑

《宏 → 管理宏 → Shortcuts》打开快捷键编辑器,宏管理也在同一标签内,布局参考 Notepad++。

默认绑定

操作快捷键
新建 / 打开 / 保存⌘N / ⌘O / ⌘S
另存为 / 全部保存⌘⇧S / ⌘⌥S
关闭标签 / 关闭窗口⌘⌥W / ⌘W
查找 / 替换⌘F / ⌘⌥F
下一个 / 上一个匹配⌘G / ⌘⇧G
跳转行⌘L
显示/隐藏侧栏⌘⇧B
自动换行⌘⇧W
分屏⌘\
放大 / 缩小⌘+ / ⌘-
复制行 / 删除行⌘⇧D / ⌘⇧K
缩进 / 反缩进⌘] / ⌘[
注释切换⌘/
上移 / 下移行⌥↑ / ⌥↓
转大写 / 转小写⌘⇧U / ⌘⇧L
录制 / 播放宏⌥⇧⌘R / ⌥⇧⌘P
下一个 / 上一个书签⌘⇧N / ⌘⇧P

以上为出厂默认,每一项都可以修改。

修改绑定

  1. 按名称搜索操作。
  2. 点击绑定后按下新组合键——是捕获,不是手输。
  3. 若组合已被占用,会提示冲突,由你决定是否覆盖。

重置与导出

  • 可单项重置,也可全部恢复默认。
  • 整组导出为 JSON,可在另一台 Mac 导入。
  • 导出文件记录应用标识,无关 JSON 会被拒绝。

已知冲突

个别操作为了兼容历史习惯可能共用同一组合键,冲突检测会标出来;给你常用的那一个换一个空闲组合即可。

在哪裡編輯

《巨集 → 管理巨集 → Shortcuts》開啟快速鍵編輯器,巨集管理也在同一標籤內,佈局參考 Notepad++。

預設綁定

操作快速鍵
新建 / 開啟 / 儲存⌘N / ⌘O / ⌘S
另存新檔 / 全部儲存⌘⇧S / ⌘⌥S
關閉標籤 / 關閉視窗⌘⌥W / ⌘W
尋找 / 取代⌘F / ⌘⌥F
下一個 / 上一個匹配⌘G / ⌘⇧G
跳轉行⌘L
顯示/隱藏側欄⌘⇧B
自動換行⌘⇧W
分割檢視⌘\
放大 / 縮小⌘+ / ⌘-
複製行 / 刪除行⌘⇧D / ⌘⇧K
縮排 / 反縮排⌘] / ⌘[
注釋切換⌘/
上移 / 下移行⌥↑ / ⌥↓
轉大寫 / 轉小寫⌘⇧U / ⌘⇧L
錄制 / 播放巨集⌥⇧⌘R / ⌥⇧⌘P
下一個 / 上一個書籤⌘⇧N / ⌘⇧P

以上為出廠預設,每一項都可以修改。

修改綁定

  1. 按名稱搜尋操作。
  2. 點擊綁定後按下新組合鍵——是捕獲,不是手輸。
  3. 若組合已被佔用,會提示衝突,由你決定是否覆蓋。

重置與導出

  • 可單項重置,也可全部恢復預設。
  • 整組導出為 JSON,可在另一台 Mac 導入。
  • 導出檔案記錄應用標識,無關 JSON 會被拒絕。

已知衝突

個別操作為了兼容歷史習慣可能共用同一組合鍵,衝突檢測會標出來;給你常用的那一個換一個空閒組合即可。