Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt Creator 4.6.2
-
None
Description
Qt Creator enables users to comment out line selections with single line comments through the ctrl+/ keyboard shortcut. However, this feature does not add comments to empty lines.
Although this choice makes sense (there is nothing to comment out), adding comments to blank lines is convenient in some use cases. For example, if single-line comments are added to empty lines covered by the selection then the whole selection will appear as a single change in version control systems. Otherwise, commenting out the same line selection will be represented by the version control system as a collection of separate changes.
Therefore, it would be very useful if Qt Creator also added comments to empty lines covered in a line selection, or offer it as a setting.