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

qml insert odd new line after opening bracket

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 6.0.0
    • Quick / QML Support
    • None
    • Windows

    Description

      When i want to change code:

      anchors.fill: parent

      to multiline:

      anchors:

      Unknown macro: { ... }

      I usually do it like:

      anchors: { <press Enter> parent

      And QtCreator produces code below:

      anchors: {
      <odd new line>
      parent

      In c++ code it will be:

      list ls = {
      //some old code

      No new line... And this is correct.

      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
            crogst Semen Sokolov
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes