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

Indenting of multi-line expressions (e.g. 'if (xx\nxx) {}'

    XMLWordPrintable

Details

    • c8fae1122216b66f16e15aa5a5527ddf613aac26

    Description

      First of all: The new indenter works almost perfect for me, good stuff! One thing I really appreciated is the indenting of multi-line if statement expressions. E.g.

      if (bla 
              || bla) {
      }
      

      However, there is a case where this doesn't work automatically. Say I have

      if (bla) {
      }
      

      And want to extend the condition. Then I place the cursor before the closing bracket, type Return, and the new condition. I end up with

      if (bla
      || bla) {
      }
      

      Is there a way to fix also this case? E.g. by always indenting the following lines?

      Attachments

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

        Activity

          People

            ckamm Christian Kamm
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes