Customizing Keyboard Shortcuts in MySql Workbench

前端 未结 1 1593
無奈伤痛
無奈伤痛 2020-12-12 17:55

Having spent a number of years working primarily with MS SQL Server (and hence SQL Server Management Studio for common tasks), I am now beginning to work with MySql. To date

相关标签:
1条回答
  • 2020-12-12 18:45

    You can modify the main_menu.xml file (for me on Ubuntu 12.04 this was in /usr/share/mysql-workbench/data/). After you modify it, you'll need to restart MySQL Workbench.

    It'll look like this

        <value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.query.exec"> 
          <link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.query</link> 
          <value type="string" key="caption">Execute (All or Selection)</value> 
          <value type="string" key="name">query.execute</value> 
          <value type="string" key="command">builtin:query.execute</value> 
          <value type="string" key="itemType">action</value> 
          <value type="string" key="shortcut">Modifier+E</value>
        </value>
    

    The second to last line (Modifier+E) was edited by me. Previously it said "Modifier+Shift+Return". Note that this is NOT an alias (you cannot have both).

    0 讨论(0)
提交回复
热议问题