devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Can the code positioning feature add a shortcut key for direct invocation?

Open Mr54233 opened this issue 7 months ago • 2 comments

It's quite inconvenient to have to click with the mouse every time for frequently used functions

And I see you're based on vite-plugin-vue-inspector, it allows configuring shortcut keys.,

  /**
   * Define a combo key to toggle inspector
   * @default 'control-shift' on windows, 'meta-shift' on other os
   *
   * any number of modifiers `control` `shift` `alt` `meta` followed by zero or one regular key, separated by -
   * examples: control-shift, control-o, control-alt-s  meta-x control-meta
   * Some keys have native behavior (e.g. alt-s opens history menu on firefox).
   * To avoid conflicts or accidentally typing into inputs, modifier only combinations are recommended.
   * You can also disable it by setting `false`.
   */
  toggleComboKey?: string | false

why this can't?

Mr54233 avatar Jun 06 '25 03:06 Mr54233

+1

297087852 avatar Jul 18 '25 03:07 297087852

It already has configuration capabilities:

vueDevTools({
  componentInspector: {
    toggleComboKey: 'alt-s',
  },
})

Tsuk1ko avatar Aug 19 '25 02:08 Tsuk1ko