Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I un/comment out code in MySQL Workbench using a keyboard shortcut?

Tags:

I went to the official Workbench keyboard shortcut page and found this:

Function                       | Keyboard Shortcut | Context -------------------------------+-------------------+----------- Comment/Uncomment lines of SQL |    Modifier+/     | SQL Editor 

However, Control+/ doesn't work.

I have MySQL Workbench installed on a Windows machine. How do you get the shortcut to work?

like image 405
mjquito Avatar asked Dec 15 '14 18:12

mjquito


People also ask

How do I comment out in MySQL?

In MySQL, a comment that starts with /* symbol and ends with */ and can be anywhere in your SQL statement. This method of commenting can span several lines within your SQL.

How do I comment out a single line in MySQL?

Single line comments start with -- . Any text between -- and the end of the line will be ignored (will not be executed).

How do I stop MySQL workbench?

To manually start, stop, or restart the Workbench service,In the Windows system taskbar, right-click the Workbench service icon. A menu appears. Select Service, then click the option you want (Start, Stop, or Restart).


1 Answers

Thanks for filing the bug report, it's annoying.

If you have a full size keyboard try using the division symbol.
i.e. The CONTROL + "/" using the division key above the keypad instead of the "?/" key on the main keyboard.

It's not nearly as convenient, but it works for me with Windows 7 and MYSQL Workbench 6.1.

like image 59
Glenn Wark Avatar answered Sep 19 '22 03:09

Glenn Wark