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

"Add leading asterisks" does not indent text correctly

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 3.1.0-rc1, Qt Creator 3.3.0
    • Fix Version/s: None
    • Component/s: Editors
    • Labels:
      None
    • Environment:
      Ubuntu 12.04 LTS 64 bit
      Ubuntu 14.04 LTS 64 bit

      Description

      1. Go to "Tools" -> "Options..." -> "Text Editor" -> "Completion" and check "Add leading asterisks".
      2. Open a C++ file.
      3. Start a Qt-style comment:
        /*! Once upon a midnight dreary
        
      4. Press Enter and go on typing in the next line:
        /*! Once upon a midnight dreary
         * while I pondered weak and weary
        

        You can easily see that the text is not indented correctly. The same is true for Java-style comments starting with "/**". Only C++ comment ("/*") work correctly.

      When text is automatically indented, like it is here, it should be indented correctly.

        Attachments

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

          Activity

            People

            • Assignee:
              kosjar Nikolai Kosjar
              Reporter:
              rlohning Robert Löhning
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes