Bug #72099 Need for keyboard shortcuts for Edit->Format->Un/Comment Selection function
Submitted: 21 Mar 2014 21:44 Modified: 11 Sep 2014 16:55
Reporter: Cristian Umaña Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S4 (Feature request)
Version:6.0.7.11215 OS:Linux (Ubuntu 13.04)
Assigned to: CPU Architecture:Any
Tags: comment, Edit, format, shortcut, uncomment

[21 Mar 2014 21:44] Cristian Umaña
Description:
Need for keyboard shortcuts for Edit->Format->Un/Comment Selection function

I suggest to replace actual  (CTRL+D) behaviour, 'cause duplicate a line isn't that useful.

Default copy and paste is enough when you want to duplicate a line or a block of text.

How to repeat:
Go to main menu tool bar click on Edit,  then Format, and then Un/Comment Selection.

Suggested fix:
My idea is use CTRL+D to un/comment a line using # (pound sign) instead of -- (two hyphen) at the beginning of line.

That would feel more natural if no text is selected.

If text is selected add a # at the beginning each line.
[24 Mar 2014 23:27] Alfredo Kojima
Have you tried ctrl+/?
Look under the Edit -> Format menu for more commands.
[11 Sep 2014 16:55] Cristian Umaña
I using now version 6.1.7.11891 build 1788, on this version as you said ctrl+/? works perfect for Un/Comment text, thanks.