Comment/uncomment code command for the SQL editor

A new command is added for commenting or uncommenting SQL code (depending
of the state of the first line of the block).

It is bound to "Ctrl+/" as used by many IDEs ("Ctrl+-" is more standard as
Zoom out). Unusual Scintilla binding for "Ctrl+/" is removed for avoiding
interference.

If there is no selection, the current line is un/commented.

See issue #1614
This commit is contained in:
mgrojo
2018-11-18 01:44:59 +01:00
parent 12b4fd91a7
commit 2c4ff851b1
2 changed files with 47 additions and 0 deletions

View File

@@ -23,6 +23,9 @@ public:
public slots:
void reloadSettings();
private slots:
void toggleBlockComment();
};
#endif