Megaxela / QCodeEditor

Qt Code Editor widget.
MIT License
383 stars 118 forks source link

Comment and Uncomment selection using CTRL+/ #27

Closed coder3101 closed 4 years ago

coder3101 commented 4 years ago

Almost all modern editor have a feature to comment and Uncomment a selection of test using CTRL+/. You should provide a default implementation of this behaviour and also a way to change the the toggle key.

Maybe a function like setToggleCommentShortcut(..); would do it. If set to nullptr means that Disable comments toggle otherwise any key combination.

Originally asked here : https://github.com/coder3101/cp-editor2/issues/59

Megaxela commented 4 years ago

Sounds like really useful function. I'll place it in list of tasks to implement!

coder3101 commented 4 years ago

Already implemented in https://github.com/ouuan/QCodeEditor

We have shifted to that repository, it may be a good idea if you could cherry pick his commits and add this, but for now I am closing this issue