customize chrome developer tool javascript debugger keyboard shortcuts?

后端 未结 10 927
野趣味
野趣味 2020-12-05 06:02

I can\'t believe that neither a Google or SO search has turned up a definitive answer or even much discussion for this, but:

Is it possible to edit/customize keyboar

相关标签:
10条回答
  • 2020-12-05 06:54

    Chrome Shortcut Manager didn't work for me, but using KeyRemap4MacBook did. More details here: Google Chrome Developer Tools keyboard shortcut customization on Mac

    0 讨论(0)
  • 2020-12-05 06:57

    The only thing that worked for me was to disable the shortcuts at the OS level (or change them to something else).

    In OSX, you can go to System Preferences > keyboard > Keyboard Shortcuts and change/disable the shortcuts that you need to work in Chrome.

    0 讨论(0)
  • 2020-12-05 06:57

    If anybody uses Ubuntu, setting a global shortcut is probably the best solution for the moment. Here's what worked for me:

    1. Install xcape (https://github.com/alols/xcape). For Debian based systems you can run:

      sudo apt-get install git gcc make pkg-config libx11-dev libxtst-dev libxi-dev
      git clone https://github.com/alols/xcape.git
      cd xcape
      make
      sudo make install
      

    2. Run the following command to map for ex. F6 to the dev tools shortcut:

      xcape -e 'F6=Control_L|Shift_L|I'

    3. Set the shortcuts you prefer and put the relative commands in your .bash_profile for permanent results

    0 讨论(0)
  • 2020-12-05 06:59

    Inspired by @jcollum's answer, here is yet another Karabiner private.xml definition, this one implementing the specific Eclipse key bindings in the original question. See also keyboard shortcut toggling answer on apple.stackexchange.com.

    <?xml version="1.0"?>
    <root>
      <item>
        <name>Custom via private.xml</name>
    
        <appdef>
          <appname>ChromeLike</appname>
          <equal>com.google.Chrome</equal>
          <equal>com.vivaldi.Vivaldi</equal>
          <prefix>org.epichrome.app.</prefix>
        </appdef>
        <item>
          <name>Remap debugger keys in Chrome (Eclipse)</name>
          <appendix>Change consumer keys to function keys matching Eclipse shortcuts</appendix>
          <identifier>private.app_chromelike_switch_consumer_to_eclipse_debugger</identifier>
          <only>ChromeLike</only>
          <autogen>__KeyToKey__ ConsumerKeyCode::KEYBOARDLIGHT_LOW,  ModifierFlag::NONE, KeyCode::F11</autogen> <!-- F5 Step Into -->
          <autogen>__KeyToKey__ ConsumerKeyCode::KEYBOARDLIGHT_HIGH, ModifierFlag::NONE, KeyCode::F10</autogen> <!-- F6 Step Over -->
          <autogen>__KeyToKey__ ConsumerKeyCode::MUSIC_PREV, ModifierFlag::NONE, KeyCode::F11, ModifierFlag::SHIFT_L</autogen> <!-- F7 Step Out -->
          <autogen>__KeyToKey__ ConsumerKeyCode::MUSIC_PLAY, ModifierFlag::NONE, KeyCode::F8</autogen> <!-- F8 Resume -->
        </item>
    
      </item>
    </root>
    
    0 讨论(0)
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题