Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-20754

Comment out empty lines when commenting out line selection

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 4.6.2
    • Editors
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            davschul David Schulz
            rui maciel Rui Maciel
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes