Add ability to toggle comments with ctrl/cmd + / keymap
Add ability to comment on editor with ctrl + / load codemirror commenting plugin
This commit is contained in:
@@ -68,6 +68,12 @@ window.common = (function(global) {
|
||||
'Cmd-Enter': function() {
|
||||
common.editorExecute$.onNext();
|
||||
return false;
|
||||
},
|
||||
'Ctrl-/': function(cm) {
|
||||
cm.toggleComment();
|
||||
},
|
||||
'Cmd-/': function(cm) {
|
||||
cm.toggleComment();
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user