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

Re-formater deletes code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • Qt Creator 4.9.0-rc1
    • Quick / QML Support
    • None

      Enter this into the QML code editor:
      property var members: [

      {"name": "member1"}

      ,

      {"name": "member2"}

      ]

      Tools/Qml/JS/Reformat file

      Result: property var members: [, ]

      The re-formater should not delete code.

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

            tjenssen Tim Jenssen
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes