Changing Keyboard Shortcuts in MySQL Workbench


Edit the file /usr/share/mysql-workbench/data/main_menu.xml and find or add lines.

You’ll need to restart MySQL Workbench for the changes to take affect.

I’ve modified the next/previous tab shortcuts:

<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.view.nextquerytabl">
  <link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.view</link>
  <value type="string" key="context">*query</value>
  <value type="string" key="caption">Select Next Query Tab</value>
  <value type="string" key="name">next_query_tab</value>
  <value type="string" key="command">builtin:wb.next_query_tab</value>
  <value type="string" key="itemType">action</value>
  <value type="string" key="shortcut">Alt+w</value>
  <value type="string" key="platform">linux</value>
</value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.view.backquerytabl">
  <link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.view</link>
  <value type="string" key="context">*query</value>
  <value type="string" key="caption">Select Previous Query Tab</value>
  <value type="string" key="name">back_query_tab</value>
  <value type="string" key="command">builtin:wb.back_query_tab</value>
  <value type="string" key="itemType">action</value>
  <value type="string" key="shortcut">Alt+q</value>
  <value type="string" key="platform">linux</value>
</value>

Edit: Apparently it’s C:\Program Files\MySQL\MySQL Workbench x.x\data\ for Windows users. Thanks/Source!