Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-126010

qmlformat: comment after a curly brace { moved to a separate line

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.11
    • 6.8.0
    • QML: Tooling

      When placing comments after curly braces, the comments are moved to separate lines.

      Input:

      if (true) { // comment 1
        a();
      } else { // comment 2
         b();
      }
      

      Output:

      if (true) {
        // comment 1
        a();
      } else {
        // comment 2
        b();
      }
      

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

            qtqmlteam Qt Qml Team User
            svlasov Sergey Vlasov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes