Add controls and shortcuts for commenting/uncommenting code in the SQL Editor. Fixes #2456.

Take the opportunity to tidy up the menus and add access keys to appropriate buttons.
This commit is contained in:
Dave Page
2017-07-19 11:43:45 +01:00
parent b90d368ee7
commit 1e1a9f2cf4
4 changed files with 204 additions and 20 deletions

View File

@@ -41,6 +41,12 @@ When using the syntax-highlighting SQL editors, the following shortcuts are avai
+--------------------------+------------------+-------------------------------------+
| Ctrl+Alt+Right | Cmd+Option+Right | Move right one word |
+--------------------------+------------------+-------------------------------------+
| Ctrl+Shift+, | Ctrl+Shift+, | Comment selected code (Inline) |
+--------------------------+------------------+-------------------------------------+
| Ctrl+Shift+. | Ctrl+Shift+. | Uncomment selected code (Inline) |
+--------------------------+------------------+-------------------------------------+
| Ctrl+Shift+/ | Ctrl+Shift+/ | Comment/Uncomment code (Block) |
+--------------------------+------------------+-------------------------------------+
| Ctrl+A | Cmd+A | Select all |
+--------------------------+------------------+-------------------------------------+
| Ctrl+C | Cmd+C | Copy selected text to the clipboard |