customize chrome developer tool javascript debugger keyboard shortcuts?

后端 未结 10 977
野趣味
野趣味 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: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

提交回复
热议问题