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

Auto-indentation of JSON variables in QML looks wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 4.4.1
    • Quick / QML Support
    • None

    Description

      Select jSON variable in your QML source code file. Press Ctrl+I to auto-indent.

      QtObject {
          // Expected
          property var ipv4Config: {
              "Method": "dhcp",
              "Address": "",
              "Netmask": "",
              "Gateway": ""
          }
          // Actual
          property var ipv4Config: {
              "Method": "dhcp",
                      "Address": "",
                      "Netmask": "",
                      "Gateway": ""
          }
      }

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            jpetrell Joona Petrell
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes