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

Indentations are not working as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • Qt Creator 4.12.0-beta1
    • Editors
    • None

    Description

      Multiline strings are getting indented automatically EVEN IF auto-indent is on. This is because in multiline strings the spaces before the strings are considered to be a part of the data. Like if QString is defined as

          QString raw_str= R"Vv.Vv(test
                          firstLine
                             Second line  
                          )Vv.Vv";
      

      Auto-indenting this block will remove the spaces added before Second line.

      There are other issues also, like passing arguments to a method in multiple lines.
      I am attaching various snapshots for the issues.

      Attachments

        1. Capture1.PNG
          Capture1.PNG
          30 kB
        2. Capture2.PNG
          Capture2.PNG
          392 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            davschul David Schulz
            shmittal Shveta Mittal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes