Details
-
Suggestion
-
Resolution: Done
-
P4: Low
-
None
-
None
-
-
cc89f72fe54e7574077bbf737344f282a9ccd970 (qt-creator/qt-creator/master)
Description
When commenting a selected block of code, Qt Creator behaves differently depending on the shape of the selection:
- // if the cursor is in 1 row and the selection is empty
- // if the selection spans any number of rows but only full rows (ish) are selected
- // if selecting only indentation space
- /* */ otherwise
This is undoubtely smart, but it can also be quite unpractical because you need to be careful when selecting the code.
IMHO it would be nice to choose if use only // comments or both.
It could be a simple checkbox in the Text Editor -> Behavior section, as in the mock
Attachments
For Gerrit Dashboard: QTCREATORBUG-24017 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
332639,5 | TextEditor: Adds option to use only single line comments | master | qt-creator/qt-creator | Status: ABANDONED | 0 | 0 |
332763,6 | TextEditor: Add option to prefer single line comments | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |