Skip to content
On this page

功能开关

按下 组合键 + Z(例如 Option + Shift + Z)可打开功能控制面板,在运行时快速切换 locate / copy / target / ai

switch

默认功能

通过 behavior.defaultAction 指定默认激活功能:

js
codeInspectorPlugin({
  behavior: {
    defaultAction: 'locate', // 'locate' | 'copy' | 'target' | 'ai'
  },
}),

默认优先级为 locate > copy > target > ai。 如果未设置 defaultAction,会按这个优先级启用第一个可用功能。

自定义面板快捷键

功能面板快捷键中的字母键默认为 Z,可通过 modeKey 自定义:

js
codeInspectorPlugin({
  modeKey: 'x',
})

此时打开面板的按键为 组合键 + X